Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Mark outputDir with @OutputDirectory annotation
Browse files Browse the repository at this point in the history
Addresses task validation warnings below...

Task property validation finished with warnings:
  - Warning: Type 'com.commercehub.gradle.plugin.avro.GenerateAvroJavaTask': property 'outputDir' is not annotated with an input or output annotation.
  - Warning: Type 'com.commercehub.gradle.plugin.avro.GenerateAvroProtocolTask': property 'outputDir' is not annotated with an input or output annotation.
  • Loading branch information
davidmc24 committed Aug 20, 2019
1 parent a4739b6 commit 75e4e85
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.gradle.api.file.FileCollection;
import org.gradle.api.specs.Spec;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.SourceTask;

import java.io.File;
Expand All @@ -14,6 +15,7 @@ public void setOutputDir(File outputDir) {
getOutputs().dir(outputDir);
}

@OutputDirectory
protected File getOutputDir() {
return outputDir;
}
Expand Down

0 comments on commit 75e4e85

Please sign in to comment.