Skip to content

Commit

Permalink
Add runtime classpath as input to ThirdPartyAuditTask (#110882)
Browse files Browse the repository at this point in the history
The runtime classpath of `ThirdPartyAuditTask` was not being tracked as
an input which can cause issues with task output caching and build
avoidance.
  • Loading branch information
mark-vieira authored Jul 15, 2024
1 parent 43a3af6 commit fa8b537
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ public Set<String> getMissingClassExcludes() {
@SkipWhenEmpty
public abstract ConfigurableFileCollection getJarsToScan();

@Classpath
public FileCollection getClasspath() {
return classpath;
}

@TaskAction
public void runThirdPartyAudit() throws IOException {
Set<File> jars = getJarsToScan().getFiles();
Expand Down

0 comments on commit fa8b537

Please sign in to comment.