Skip to content
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

Bug: Error while evaluating property 'lineEndingsPolicy' Spotless JVM-local cache is stale. #2025

Closed
eye2web opened this issue Jan 26, 2024 · 1 comment

Comments

@eye2web
Copy link

eye2web commented Jan 26, 2024

  • Gradle 8.5
  • Spotless 6.25.0
  • Windows 10 enterprise

spotless.conventions.gradle.kts

spotless {
    java {
        lineEndings = LineEnding.UNIX
        importOrder("\\#java", "\\#javax", "\\#org", "\\#", "java", "javax", "org")
        target("src/*/java/**/*.java")
        removeUnusedImports()
    }
}
* What went wrong:
Execution failed for task ':project:spotlessJava'.
> Error while evaluating property 'lineEndingsPolicy' of task ':x:spotlessJava'.
   > Spotless JVM-local cache is stale. Regenerate the cache with
       rmdir /q /s .gradle/configuration-cache
     To make this workaround obsolete, please upvote https://github.com/diffplug/spotless/issues/987

Reproduce:

  • Run ./gradlew build from umbrella includeBuilds project. (Generates the config cache)
  • Run ./gradlew --stop Stop running deamons
  • Run ./gradlew build from umbrella includeBuilds project. (Fails)
@nedtwigg
Copy link
Member

The workaround is in the message:

rmdir /q /s .gradle/configuration-cache

Regardless these will hopefully go away in a week or two when this gets finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants