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.
This commit is contained in:
parent
7b516f99b9
commit
e7f0adb0c5
|
@ -33,6 +33,8 @@ import org.gradle.api.tasks.InputFile;
|
||||||
import org.gradle.api.tasks.InputFiles;
|
import org.gradle.api.tasks.InputFiles;
|
||||||
import org.gradle.api.tasks.Optional;
|
import org.gradle.api.tasks.Optional;
|
||||||
import org.gradle.api.tasks.OutputDirectory;
|
import org.gradle.api.tasks.OutputDirectory;
|
||||||
|
import org.gradle.api.tasks.PathSensitive;
|
||||||
|
import org.gradle.api.tasks.PathSensitivity;
|
||||||
import org.gradle.api.tasks.SkipWhenEmpty;
|
import org.gradle.api.tasks.SkipWhenEmpty;
|
||||||
import org.gradle.api.tasks.TaskAction;
|
import org.gradle.api.tasks.TaskAction;
|
||||||
import org.gradle.process.ExecResult;
|
import org.gradle.process.ExecResult;
|
||||||
|
@ -86,11 +88,13 @@ public class ThirdPartyAuditTask extends DefaultTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
@InputFiles
|
@InputFiles
|
||||||
|
@PathSensitive(PathSensitivity.NAME_ONLY)
|
||||||
public Configuration getForbiddenAPIsConfiguration() {
|
public Configuration getForbiddenAPIsConfiguration() {
|
||||||
return getProject().getConfigurations().getByName("forbiddenApisCliJar");
|
return getProject().getConfigurations().getByName("forbiddenApisCliJar");
|
||||||
}
|
}
|
||||||
|
|
||||||
@InputFile
|
@InputFile
|
||||||
|
@PathSensitive(PathSensitivity.NONE)
|
||||||
public File getSignatureFile() {
|
public File getSignatureFile() {
|
||||||
return signatureFile;
|
return signatureFile;
|
||||||
}
|
}
|
||||||
|
@ -154,6 +158,7 @@ public class ThirdPartyAuditTask extends DefaultTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
@InputFiles
|
@InputFiles
|
||||||
|
@PathSensitive(PathSensitivity.NAME_ONLY)
|
||||||
@SkipWhenEmpty
|
@SkipWhenEmpty
|
||||||
public Set<File> getJarsToScan() {
|
public Set<File> getJarsToScan() {
|
||||||
// These are SelfResolvingDependency, and some of them backed by file collections, like the Gradle API files,
|
// These are SelfResolvingDependency, and some of them backed by file collections, like the Gradle API files,
|
||||||
|
|
Loading…
Reference in New Issue