Skip to content

Commit

Permalink
Add path sensitivity annotations (#37762)
Browse files Browse the repository at this point in the history
The plugin builder plugin generates warnings for these.
There's no immediate impact as we don't have a shared build cache.
  • Loading branch information
alpar-t committed Jan 25, 2019
1 parent 7b516f9 commit e7f0adb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.Optional;
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.TaskAction;
import org.gradle.process.ExecResult;
Expand Down Expand Up @@ -86,11 +88,13 @@ public void setTargetCompatibility(JavaVersion targetCompatibility) {
}

@InputFiles
@PathSensitive(PathSensitivity.NAME_ONLY)
public Configuration getForbiddenAPIsConfiguration() {
return getProject().getConfigurations().getByName("forbiddenApisCliJar");
}

@InputFile
@PathSensitive(PathSensitivity.NONE)
public File getSignatureFile() {
return signatureFile;
}
Expand Down Expand Up @@ -154,6 +158,7 @@ public Set<String> getMissingClassExcludes() {
}

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

0 comments on commit e7f0adb

Please sign in to comment.