Skip to content

Commit 3f1f63b

Browse files
committed
fix configuration cache for groovy
1 parent 67f7df7 commit 3f1f63b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugin-gradle/src/main/java/com/diffplug/gradle/spotless/GroovyExtension.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ protected void setupTask(SpotlessTask task) {
6060
if (!getProject().getPlugins().hasPlugin(GroovyBasePlugin.class)) {
6161
throw new GradleException(message);
6262
}
63+
final boolean excludeJavaValue = excludeJava;
6364
target = getSources(getProject(),
6465
message,
6566
sourceSet -> sourceSet.getExtensions().getByType(GroovySourceDirectorySet.class),
6667
file -> {
6768
final String name = file.getName();
68-
if (excludeJava) {
69+
if (excludeJavaValue) {
6970
return name.endsWith(".groovy");
7071
} else {
7172
return name.endsWith(".groovy") || name.endsWith(".java");

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ develocity {
6060
termsOfUseUrl = "https://gradle.com/terms-of-service"
6161
termsOfUseAgree = "yes"
6262
publishing {
63-
onlyIf { providers.environmentVariable('CI').present }
63+
onlyIf { getenv('CI') != null }
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)