Skip to content

Commit a77fbe2

Browse files
TheMrMilchmannGoopher Maijenburg
authored andcommitted
Correctly annotate Gradle task in- & outputs and enable stricter plugin validation (OpenAPITools#21957)
* Correctly apply Gradle task input & output annotations to accessors Gradle's task input and output annotations should be applied to the accessors instead of the properties. No adhering to this can cause funky behavior in the generated stubs. Examples of this can be found in the docs: https://docs.gradle.org/current/userguide/implementing_custom_tasks.html Also adds missing annotations so that validation passes * Enable strict Gradle plugin validation
1 parent 9e01e75 commit a77fbe2

File tree

4 files changed

+151
-143
lines changed

4 files changed

+151
-143
lines changed

modules/openapi-generator-gradle-plugin/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ tasks.withType(ReleaseNexusStagingRepository).configureEach {
8181
onlyIf { nexusPublishing.useStaging.get() }
8282
}
8383

84+
tasks.named("validatePlugins").configure {
85+
enableStricterValidation = true
86+
}
87+
8488
gradlePlugin {
8589
website = "https://openapi-generator.tech/"
8690
vcsUrl = "https://github.com/OpenAPITools/openapi-generator"

0 commit comments

Comments
 (0)