Skip to content

Commit 548475c

Browse files
committed
the plugin will generate a file so it should be marked as OutputFile
1 parent 8e6aaae commit 548475c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/github/git/commit/id/gradle/plugin/GitCommitIdPluginGenerationTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
import org.gradle.api.plugins.ExtensionAware;
3434
import org.gradle.api.tasks.CacheableTask;
3535
import org.gradle.api.tasks.InputDirectory;
36-
import org.gradle.api.tasks.InputFile;
3736
import org.gradle.api.tasks.Internal;
37+
import org.gradle.api.tasks.OutputFile;
3838
import org.gradle.api.tasks.PathSensitive;
3939
import org.gradle.api.tasks.PathSensitivity;
4040
import org.gradle.api.tasks.TaskAction;
@@ -118,7 +118,7 @@ public DirectoryProperty getInput() {
118118
* The optional "properties" file that can be used to store the generated
119119
* properties in a file.
120120
*/
121-
@InputFile
121+
@OutputFile
122122
public RegularFileProperty getOutput() {
123123
return getGitCommitIdPluginOutputSettingsExtension().getOutputFile();
124124
}

0 commit comments

Comments
 (0)