From 09048531a701ae783f029443c654925c3b26433b Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 15 Jul 2024 09:28:20 -0700 Subject: [PATCH] Add runtime classpath as input to ThirdPartyAuditTask --- .../gradle/internal/precommit/ThirdPartyAuditTask.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java b/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java index 4263ef2b1f76f..489cff65976b1 100644 --- a/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java +++ b/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java @@ -193,6 +193,11 @@ public Set getMissingClassExcludes() { @SkipWhenEmpty public abstract ConfigurableFileCollection getJarsToScan(); + @Classpath + public FileCollection getClasspath() { + return classpath; + } + @TaskAction public void runThirdPartyAudit() throws IOException { Set jars = getJarsToScan().getFiles();