Skip to content

Commit

Permalink
Exclude build directories from nohttp task
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erichaagdev authored and sjohnr committed Jan 2, 2024
1 parent d879d40 commit f6b07f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public void apply(Project 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/**");
}
}

0 comments on commit f6b07f5

Please sign in to comment.