From 9edf70e980cebc9577a23f7c989a3340f6d7d4b9 Mon Sep 17 00:00:00 2001 From: Vincent Galloy Date: Wed, 14 Apr 2021 11:02:48 +0200 Subject: [PATCH] @Input and @Internal should not be apply on the same property (#9059) 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 --- .../openapitools/generator/gradle/plugin/tasks/GenerateTask.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt index b1dcd474ae8..c3e1efcee94 100644 --- a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt +++ b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt @@ -81,9 +81,8 @@ open class GenerateTask : DefaultTask() { val outputDir = project.objects.property() @Suppress("unused") - @get:Internal @set:Option(option = "input", description = "The input specification.") - @Input + @Internal var input: String? = null set(value) { inputSpec.set(value)