1
0
Fork 0
petclinic/angular-api-client/build.gradle.kts

30 lines
711 B
Text
Raw Normal View History

2024-11-25 09:49:21 -05:00
plugins {
id("org.openapi.generator") version "7.10.0"
}
group = "org.springframework.samples"
val apiArtifact by configurations.creating {
isCanBeConsumed = false
}
val angularClient by configurations.creating {
isCanBeResolved = false
}
dependencies {
apiArtifact(project(":api", "apiArtifact"))
}
openApiGenerate {
inputSpec.set(apiArtifact.singleFile.absolutePath)
outputDir.set(layout.buildDirectory.dir("generated/sources/openapi").map { it.asFile.absolutePath })
generatorName.set("typescript-angular")
configOptions.set(mapOf(
"ngVersion" to "19.0.0"
))
}
artifacts {
add(angularClient.name, layout.buildDirectory.dir("generated/sources/openapi"))
}