spotlessCheck not run as part of a gradle build
See original GitHub issue- summary of problem:
The
spotlessCheck
task is no longer run as part of abuild
execution. Confirmed by running./gradlew build --dry-run
. ThespotlessCheck
task still exists and can be run manually. - gradle or maven version: 7.4.2
- spotless version: 6.4.2
- operating system and version: multiple (running on linux/mac/windows on CI)
- copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible: repo, with this main config in root build.gradle
spotless {
kotlin {
target "**/*.kt"
targetExclude "**/gen/**/*.*", "**/generated/**/*.*", "sqldelight-compiler/integration-tests/src/test/kotlin/com/example/**/*.*", "sqldelight-compiler/src/test/migration-interface-fixtures/**/*.*"
ktlint(deps.versions.ktlint.get()).userData(["indent_size": "2"])
trimTrailingWhitespace()
endWithNewline()
}
}
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
spotlessCheck not run as part of a gradle build #1164 - GitHub
summary of problem: The spotlessCheck task is no longer run as part of a build execution. Confirmed by running ./gradlew build --dry-run.
Read more >Developers - spotlessCheck not run as part of a gradle build -
[x] summary of problem: The spotlessCheck task is no longer run as part of a build execution. Confirmed by running ./gradlew build --dry-run...
Read more >Gradle: Spotless task not firing when needed - Stack Overflow
Spotless' intended behavior is to let you know that there's a problem with spotlessCheck . Then you run spotlessApply yourself manually.
Read more >diffplug/spotless - Gitter
I am trying to add spotless in my custom Gradle plugin apply method instead of build.gradle? I added it as a dependency implementation ......
Read more >Improve the Performance of Gradle Builds
This section offers several ways to make a build faster. ... running in the background so every Gradle build doesn't have to wait...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Nice. I think this was my fault for originally bringing it up with the spotless team, but it led me to file a bug with the Android team, and they removed it from their template. https://issuetracker.google.com/issues/186924459
All’s well that ends well.
Thanks spotless team!
confirmed fixed, thanks 👍