Skip to content

Commit

Permalink
Add runtime classpath as input to ThirdPartyAuditTask (elastic#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 committed Jul 15, 2024
1 parent d5085ac commit ad29ec9
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 ad29ec9

Please sign in to comment.