Skip to content

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

Done
openjavaformat/docs
#19

Description

@dglynch

Currently, the OJF Gradle plugin only applies to Java subprojects, not Android ones. Even if Java source files in those projects are incorrectly formatted, the spotlessCheck task passes and the spotlessApply and formatDiff tasks do nothing.

The OJF IntelliJ IDEA plugin does see and fix these files.

I have created a reproducer repo that demonstrates this issue: https://github.com/dglynch/OpenJavaFormatAndroid

I suggest that OJF should be improved such that, if a Gradle project were configured like the above repo, the Java files in the Android app and Android library subprojects would be treated the same as the ones in the Java library subproject.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions