File tree Expand file tree Collapse file tree 5 files changed +19
-14
lines changed
Expand file tree Collapse file tree 5 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1- import java.time.Duration
21import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+ import java.time.Duration
33
44plugins {
55 kotlin(" jvm" ) version " 2.1.10"
@@ -63,10 +63,4 @@ kotlin {
6363 jvmToolchain(21 )
6464}
6565
66- tasks.register(" prepareSpecs" ) {
67- dependsOn(" mergeSpecs" , " transformSpecs" )
68-
69- File (" $rootDir " , " specs/specs.yaml" )
70- }
71-
7266apply (" gradle-tasks/specs.gradle.kts" )
Original file line number Diff line number Diff line change 11import org.openapitools.codegen.CodegenConstants
2- import com.expediagroup.sdk.xap.generator.mustache.AllowedMediaTypesLambda
2+ // import com.expediagroup.sdk.xap.generator.mustache.AllowedMediaTypesLambda
33
44plugins {
55 `kotlin- dsl`
@@ -43,8 +43,8 @@ openApiGenerate {
4343 configFile = " $projectDir /src/main/resources/generator-config.yaml"
4444 outputDir = " $rootDir /xap-sdk/src/main/kotlin"
4545
46- additionalProperties.put(CodegenConstants .ENUM_PROPERTY_NAMING , " UPPERCASE" )
47- additionalProperties.put(" allowedMediaTypes" , AllowedMediaTypesLambda ())
46+ additionalProperties.put(CodegenConstants .ENUM_PROPERTY_NAMING .toString() , " UPPERCASE" )
47+ // additionalProperties.put("allowedMediaTypes", AllowedMediaTypesLambda())
4848
4949 configOptions.put(" sourceFolder" , " " )
5050
Original file line number Diff line number Diff line change @@ -13,7 +13,18 @@ tasks.register("transformSpecs") {
1313 exec {
1414 commandLine(
1515 " npx --yes -p @expediagroup/spec-transformer cli --headers --operationIdsToTags -i specs.yaml -o specs.yaml"
16+ .split(" " )
1617 )
1718 workingDir = File (rootDir, " specs" )
1819 }
1920}
21+
22+ tasks.register(" prepareSpecs" ) {
23+ dependsOn(" mergeSpecs" , " transformSpecs" )
24+
25+ doLast {
26+ File (" $rootDir " , " specs/specs.yaml" ).copyTo(
27+ File (" $rootDir " , " generator/src/main/resources/specs-copied.yaml" ),
28+ )
29+ }
30+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ pluginManagement {
88 }
99}
1010
11-
1211plugins {
1312 id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.8.0"
1413}
Original file line number Diff line number Diff line change @@ -118,9 +118,10 @@ gradle.taskGraph.whenReady {
118118}
119119
120120tasks.register(" publishSnapshots" ) {
121- val snapshotModules = rootProject.subprojects.filter { project ->
122- project.version.toString().contains(" -SNAPSHOT" ) && project.tasks.names.contains(" publish" )
123- }
121+ val snapshotModules =
122+ rootProject.subprojects.filter { project ->
123+ project.version.toString().contains(" -SNAPSHOT" ) && project.tasks.names.contains(" publish" )
124+ }
124125
125126 if (snapshotModules.isNotEmpty()) {
126127 dependsOn(snapshotModules.map { " :${it.name} :publish" })
You can’t perform that action at this time.
0 commit comments