File tree Expand file tree Collapse file tree
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree Original file line number Diff line number Diff 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" );
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments