-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Spotless prevents to build or import #78
Comments
Ever task with a name containing Not sure about the error though. I will try to reproduce it. |
Ah, I forgot I had this in my
allprojects {
plugins.withType(JavaPlugin::class.java) {
plugins.withId("com.diffplug.spotless") {
tasks.findByName("spotlessApply")?.let { spotless ->
tasks.withType<JavaCompile> { // this causes the issue
finalizedBy(spotless)
}
}
}
// legacy plugin id
plugins.withId("com.diffplug.gradle.spotless") {
tasks.findByName("spotlessApply")?.let { spotless ->
tasks.withType<JavaCompile> {
finalizedBy(spotless)
}
}
}
}
} |
Interesting. Maybe I can figure out why it’s causing the error. Though I don’t immediately see why it should be an issue. |
Yep I don't see as well why it could be an issue there, these seem to be different tasks. For now I disabled this in my |
I cloned the repo, and I see this error when trying to build or when importing in IJ and this is very confusing because at first nothing looks wrong.
Cannot change dependencies of dependency configuration ':jsvg:compileOnly' after it has been included in dependency resolution.
After various trial and errors I found out that spotless was the culprit, and that it is required to add
skipSpotless = true
in properties.And running also run into the same issue.
Also, contributing mention an
autostyleCheck
task but it doesn't exist.The text was updated successfully, but these errors were encountered: