Skip to content

Commit e7f0adb

Browse files
authored
Add path sensitivity annotations (#37762)
The plugin builder plugin generates warnings for these. There's no immediate impact as we don't have a shared build cache.
1 parent 7b516f9 commit e7f0adb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/java/org/elasticsearch/gradle/precommit/ThirdPartyAuditTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
import org.gradle.api.tasks.InputFiles;
3434
import org.gradle.api.tasks.Optional;
3535
import org.gradle.api.tasks.OutputDirectory;
36+
import org.gradle.api.tasks.PathSensitive;
37+
import org.gradle.api.tasks.PathSensitivity;
3638
import org.gradle.api.tasks.SkipWhenEmpty;
3739
import org.gradle.api.tasks.TaskAction;
3840
import org.gradle.process.ExecResult;
@@ -86,11 +88,13 @@ public void setTargetCompatibility(JavaVersion targetCompatibility) {
8688
}
8789

8890
@InputFiles
91+
@PathSensitive(PathSensitivity.NAME_ONLY)
8992
public Configuration getForbiddenAPIsConfiguration() {
9093
return getProject().getConfigurations().getByName("forbiddenApisCliJar");
9194
}
9295

9396
@InputFile
97+
@PathSensitive(PathSensitivity.NONE)
9498
public File getSignatureFile() {
9599
return signatureFile;
96100
}
@@ -154,6 +158,7 @@ public Set<String> getMissingClassExcludes() {
154158
}
155159

156160
@InputFiles
161+
@PathSensitive(PathSensitivity.NAME_ONLY)
157162
@SkipWhenEmpty
158163
public Set<File> getJarsToScan() {
159164
// These are SelfResolvingDependency, and some of them backed by file collections, like the Gradle API files,

0 commit comments

Comments
 (0)