question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 a build execution. Confirmed by running ./gradlew build --dry-run. The spotlessCheck 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ColtonIdlecommented, Apr 26, 2022

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!

1reaction
AlecStrongcommented, Apr 23, 2022

confirmed fixed, thanks 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found