The runtime classpath of `ThirdPartyAuditTask` was not being tracked as an input which can cause issues with task output caching and build avoidance.
@@ -193,6 +193,11 @@ public abstract class ThirdPartyAuditTask extends DefaultTask {
@SkipWhenEmpty
public abstract ConfigurableFileCollection getJarsToScan();
+ @Classpath
+ public FileCollection getClasspath() {
+ return classpath;
+ }
+
@TaskAction
public void runThirdPartyAudit() throws IOException {
Set<File> jars = getJarsToScan().getFiles();