-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support using Gradle projects as the dependency inputs #1901
Comments
Another workable way is using dependencies {
spotless("org.junit.jupiter:junit-jupiter:5.10.0")
spotless(libs.jupiter)
spotless(projects.b)
...
} I guess this is an intended behavior of not using it? |
I'm running into this as well. I've created a new rule in the same (gradle) project that I'd like to apply it which doesn't seem possible at the moment. |
Are you saying there already is such a |
Not yet, it's a proposal. There are some issues related to reuse configurations: spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/GradleProvisioner.java Lines 116 to 132 in a6d2e61
|
I solved this problem by releasing a custom ruleset module to MavenLocal and using it. |
I'd finished Ktlint custom rule sets support in #1896, but it supports Maven coordinates only due to the limits of
spotless/lib/src/main/java/com/diffplug/spotless/JarState.java
Lines 56 to 59 in 0189f71
We can extend this for Gradle local projects to be used as the inputs, not sure if this way works for Maven projects as well.
The text was updated successfully, but these errors were encountered: