target 'src/**/*.kt'
java
that is missing.plugins
worked.Hey there, I'm trying to upgrade from 3.X version to the latest and copying when I see in the https://plugins.gradle.org/plugin/com.diffplug.spotless
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.6.1'
I just get an error
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.diffplug.gradle.spotless'.
Caused by: org.gradle.api.GradleException: We have moved from 'com.diffplug.gradle.spotless'
com.diffplug.gradle.spotless
with com.diffplug.spotless
across your *.gradle
files. See this changelog entry for more info.
12:46:03.345 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
Execution failed for task ':server-backend-spi:spotlessJava'.
> java.io.EOFException
* Try:
Run with --scan to get full insights.
* Exception is:
....
Caused by: com.diffplug.common.base.Errors$WrappedAsRuntimeException: java.io.EOFException
at com.diffplug.common.base.Errors.asRuntime(Errors.java:408)
at com.diffplug.gradle.spotless.SerializableMisc.fromStream(SerializableMisc.java:65)
at com.diffplug.gradle.spotless.SerializableMisc.fromFile(SerializableMisc.java:44)
.....
Caused by: java.io.EOFException
at com.diffplug.gradle.spotless.SerializableMisc.fromStream(SerializableMisc.java:60)
... 92 more
@nedtwigg I may be having an issue related to: diffplug/spotless#746
but it's not a git-submodule (I don't believe, not explicitly), but is a module of the project. This is only occurring on Jenkins, however.
`
What went wrong:
Could not determine the dependencies of task ':integrity:spotlessApply'.
Could not create task ':integrity:spotlessJavaApply'.
Could not create task ':integrity:spotlessJava'.
No such reference 'origin/master'
Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
Exception is:
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':integrity:spotlessApply'.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:69)
`
spotlessApply
task depend on javaCompile
. maybe it could be disabled for the pipeline, or just force people to explicitly run spotlessApply
target when formatting code.