Skip to content

Commit e558cda

Browse files
authored
Merge pull request #434 from ZacSweers/z/fixGradleWarning
Try fixing #427
2 parents aa9484e + 10a908d commit e558cda

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java

+13-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.gradle.api.GradleException;
3535
import org.gradle.api.tasks.Input;
3636
import org.gradle.api.tasks.InputFiles;
37+
import org.gradle.api.tasks.OutputFiles;
3738
import org.gradle.api.tasks.TaskAction;
3839
import org.gradle.api.tasks.incremental.IncrementalTaskInputs;
3940

@@ -119,7 +120,18 @@ public void setTarget(Iterable<File> target) {
119120
/** Internal use only. */
120121
@InputFiles
121122
@Deprecated
122-
public Iterable<File> getInternalTarget() {
123+
public Iterable<File> getInternalTargetInput() {
124+
return getInternalTarget();
125+
}
126+
127+
/** Internal use only. */
128+
@OutputFiles
129+
@Deprecated
130+
public Iterable<File> getInternalTargetOutput() {
131+
return getInternalTarget();
132+
}
133+
134+
private Iterable<File> getInternalTarget() {
123135
// used to combine the special cache file and the real target
124136
return Iterables.concat(ImmutableList.of(getCacheFile()), target);
125137
}

0 commit comments

Comments
 (0)