Skip to content

Commit

Permalink
@input and @internal should not be apply on the same property (#9059)
Browse files Browse the repository at this point in the history
Motivation:

In Gradle 7.0 apply @input and @internal on property is forbidden.
Before Gradle 7.0 applying both on the same property is confusing. According to the documentation:

* @input: Attached to a task property to indicate that the property specifies some input value for the task.
* @internal: Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking
  • Loading branch information
vgalloy authored Apr 14, 2021
1 parent dbdb6c5 commit 9edf70e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ open class GenerateTask : DefaultTask() {
val outputDir = project.objects.property<String>()

@Suppress("unused")
@get:Internal
@set:Option(option = "input", description = "The input specification.")
@Input
@Internal
var input: String? = null
set(value) {
inputSpec.set(value)
Expand Down

0 comments on commit 9edf70e

Please sign in to comment.