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")) }