prettier()
step. It's npm requirements are documented here: https://github.com/diffplug/spotless/blob/main/plugin-gradle/README.md#npm-detection
java
plugin. You should have gotten the same error in earlier versions of Spotless too, if you weren't applying the java
plugin 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 java
plugin, but now don't (I'm speculating, but maybe something like kotlin-multiplatform
might apply the java plugin, and then stop doing that in a future version, I don't know.
target/src/**/*.kt
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