File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,18 @@ static boolean isHydrated(SpotlessTask task) {
138
138
139
139
static void assertHydrated (SpotlessTask task ) {
140
140
if (!isHydrated (task )) {
141
- throw new GradleException ("Spotless doesn't support configuration cache yet.\n " +
142
- "Rerun with --no-configuration-cache" );
141
+ throw new GradleException ("Spotless needs a workaround to support configuration cache:\n " +
142
+ " (in your root build.gradle)\n " +
143
+ " apply plugin: 'com.diffplug.spotless-setup\n " +
144
+ " spotlessSetup { jvmLocalCache = true }\n " +
145
+ "To make this workaround obsolete, please upvote https://github.com/diffplug/spotless/issues/987" );
143
146
}
144
147
}
145
148
146
149
static GradleException cacheIsStale () {
147
- return new GradleException ("Spotless daemon -local cache is stale. Regenerate the cache with\n " +
150
+ return new GradleException ("Spotless JVM -local cache is stale. Regenerate the cache with\n " +
148
151
" " + (FileSignature .machineIsWin () ? "rmdir /q /s" : "rm -rf" ) + " .gradle/configuration-cache\n " +
149
- "For more information see #123 " );
152
+ "To make this workaround obsolete, please upvote https://github.com/diffplug/spotless/issues/987 " );
150
153
}
151
154
152
155
static class LiveCache {
You can’t perform that action at this time.
0 commit comments