Skip to content

Commit f6b07f5

Browse files
erichaagdevsjohnr
authored andcommitted
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 parent d879d40 commit f6b07f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public void apply(Project project) {
3636
NoHttpExtension nohttp = project.getExtensions().getByType(NoHttpExtension.class);
3737
File allowlistFile = project.getRootProject().file("etc/nohttp/allowlist.lines");
3838
nohttp.setAllowlistFile(allowlistFile);
39-
nohttp.getSource().exclude("buildSrc/build/**");
39+
nohttp.getSource().exclude("**/build/**");
4040
}
4141
}

0 commit comments

Comments
 (0)