Skip to content

Commit c364c60

Browse files
authored
Add runtime classpath as input to ThirdPartyAuditTask (#110882) (#110888)
The runtime classpath of `ThirdPartyAuditTask` was not being tracked as an input which can cause issues with task output caching and build avoidance.
1 parent a51806a commit c364c60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ public Set<String> getMissingClassExcludes() {
188188
@SkipWhenEmpty
189189
public abstract ConfigurableFileCollection getJarsToScan();
190190

191+
@Classpath
192+
public FileCollection getClasspath() {
193+
return classpath;
194+
}
195+
191196
@TaskAction
192197
public void runThirdPartyAudit() throws IOException {
193198
Set<File> jars = getJarsToScan().getFiles();

0 commit comments

Comments
 (0)