javaplugin. You should have gotten the same error in earlier versions of Spotless too, if you weren't applying the
javaplugin then either. Is it possible there were more changes in your buildscript than just the spotless version? There could also be other plugins which used to apply the
javaplugin, but now don't (I'm speculating, but maybe something like
kotlin-multiplatformmight apply the java plugin, and then stop doing that in a future version, I don't know.
javathat is missing.
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
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'
*.gradlefiles. 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'
Run with --debug option to get more log output. Run with --scan to get full insights.
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':integrity:spotlessApply'.
spotlessApplytask depend on
javaCompile. maybe it could be disabled for the pipeline, or just force people to explicitly run
spotlessApplytarget when formatting code.