Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/openapi-generator-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies {
tasks.named("test", Test).configure {
useTestNG()
testLogging.showStandardStreams = false
systemProperty("openApiGeneratorVersion", openApiGeneratorVersion)

beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ class OpenApiGeneratorPlugin : Plugin<Project> {

generate.outputDir.set(project.layout.buildDirectory.dir("generate-resources/main").map { it.asFile.path })

val openApiGeneratorClasspath = configurations.create("openApiGeneratorClasspath") {
isCanBeConsumed = false
isCanBeResolved = true
description = "Extra jars for the OpenAPI Generator worker (custom generators)"
}

tasks.apply {
register("openApiGenerators", GeneratorsTask::class.java).configure {
group = pluginGroup
Expand Down Expand Up @@ -93,6 +99,8 @@ class OpenApiGeneratorPlugin : Plugin<Project> {
description =
"Generate code via Open API Tools Generator for Open API 2.0 or 3.x specification documents."

generatorClasspath.setFrom(openApiGeneratorClasspath)

verbose.set(generate.verbose)
validateSpec.set(generate.validateSpec)
generatorName.set(generate.generatorName)
Expand Down Expand Up @@ -126,6 +134,8 @@ class OpenApiGeneratorPlugin : Plugin<Project> {
nameMappings.set(generate.nameMappings)
modelNameMappings.set(generate.modelNameMappings)
parameterNameMappings.set(generate.parameterNameMappings)
enumNameMappings.set(generate.enumNameMappings)
operationIdNameMappings.set(generate.operationIdNameMappings)
openapiNormalizer.set(generate.openapiNormalizer)
invokerPackage.set(generate.invokerPackage)
groupId.set(generate.groupId)
Expand Down
Loading