Repository navigation
Describe the Gradle plugin in Android modules - #19
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thatformatDiffand the Spotless step cover thejavadirectories of every Android source set but not thekotlinones. 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 withoutjava.spotless.md: one paragraph. In an Android module the step formats the Android source sets, and atargetin thespotlessblock replaces them.zensical build --clean --strictpasses locally.