Skip to content

Commit

Permalink
Add runtime classpath as input to ThirdPartyAuditTask (#110882) (#110888
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 a51806a commit c364c60
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,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 c364c60

Please sign in to comment.