-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix input and output annotations (#364)
With Gradle 6.0 we are starting to enforce annotations on all task getters. Non ad-hoc tasks should use annotations in place of the `Task.getInputs()` and `getOutputs()` APIs. Due to these changes with Gradle 6.0 the applying the Protobuf plugin results in the following deprecation warnings being displayed: ```text > Warning: Type 'GenerateProtoTask': property 'buildType' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'builtins' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'descriptorPath' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'descriptorSetOptions' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'fileResolver' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'flavors' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'generateDescriptorSet' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'isTest' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'isTestVariant' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'outputSourceDirectorySet' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'plugins' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'sourceFiles' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'sourceSet' is not annotated with an input or output annotation. > Warning: Type 'GenerateProtoTask': property 'variant' is not annotated with an input or output annotation. > Warning: Type 'ProtobufExtract': property 'destDir' is not annotated with an input or output annotation. > Warning: Type 'ProtobufExtract': property 'isTest' is not annotated with an input or output annotation. ``` This PR fixes the problems and the warnings are removed. This is based on #351 by @lptr
- Loading branch information
1 parent
44eb516
commit 4daf4e7
Showing
5 changed files
with
97 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters