Skip to content

Describe the Gradle plugin in Android modules - #19

Merged
abashev merged 1 commit into
mainfrom
abashev/android-projects
Nov 28, 2026
Merged

abashev merged 1 commit into
mainfrom
abashev/android-projects

Conversation

@abashev

@abashev abashev commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Documents openjavaformat/open-java-format#288, which fixes openjavaformat/open-java-format#284. Merge it once a release has that pull request in it.

  • gradle.md: a new section, Android projects. It says which Android plugins the Gradle plugin works next to, from AGP 9.1 on, and that formatDiff and the Spotless step cover the java directories of every Android source set but not the kotlin ones. It also says the plugin brings no AGP of its own and needs no Android SDK. A warning says that up to 21.1.1 the plugin did nothing in a module without java.
  • spotless.md: one paragraph. In an Android module the step formats the Android source sets, and a target in the spotless block replaces them.

zensical build --clean --strict passes locally.

The plugin formats the Java files of the Android source sets in a
module with com.android.application, library, dynamic-feature or test,
from openjavaformat/open-java-format#288. Up to 21.1.1 it did nothing
in a module without the java plugin.
@abashev
abashev merged commit 04f8961 into main Nov 28, 2026
2 checks passed
@abashev
abashev deleted the abashev/android-projects branch November 28, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add support for Android application and Android library subprojects in Gradle

1 participant