Browse Source

Exclude build directories from nohttp task

Before this commit, build directories were considered when running the
checkstyleNohttp Gradle task.

Given that many tasks write their outputs to the build directory, this
could lead to incorrect results being produced, depending on what order
the tasks are executed. As a result, Gradle will disable some build
optimizations, such as build caching, to ensure correctness.

After this commit, build directories are ignored by the
checkstyleNohttp task.
1.1.x
Eric Haag 2 years ago committed by Steve Riesenberg
parent
commit
f6b07f5649
No known key found for this signature in database
GPG Key ID: 3D0169B18AB8F0A9
  1. 2
      buildSrc/src/main/java/org/springframework/gradle/nohttp/SpringNoHttpPlugin.java

2
buildSrc/src/main/java/org/springframework/gradle/nohttp/SpringNoHttpPlugin.java

@ -36,6 +36,6 @@ public class SpringNoHttpPlugin implements Plugin<Project> { @@ -36,6 +36,6 @@ public class SpringNoHttpPlugin implements Plugin<Project> {
NoHttpExtension nohttp = project.getExtensions().getByType(NoHttpExtension.class);
File allowlistFile = project.getRootProject().file("etc/nohttp/allowlist.lines");
nohttp.setAllowlistFile(allowlistFile);
nohttp.getSource().exclude("buildSrc/build/**");
nohttp.getSource().exclude("**/build/**");
}
}

Loading…
Cancel
Save