diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache index b2405c950c1c..193e89e4068b 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache @@ -233,3 +233,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { } } {{/kotlinx_serialization}} + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = '{{groupId}}' + artifactId = '{{artifactId}}' + version = '{{artifactVersion}}' + from components.java + } + } +} diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle b/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle index 55821ba0b61f..c432c5594735 100644 --- a/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle +++ b/samples/client/echo_api/kotlin-jvm-okhttp/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-jvm-okhttp-echo-api' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/build.gradle b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/build.gradle index dde9b1789935..8bb6eb103bc9 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/build.gradle +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/build.gradle @@ -66,3 +66,18 @@ dependencies { implementation "org.springframework.boot:spring-boot-starter-web:$spring_boot_version" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-client' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/build.gradle b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/build.gradle index a43cda96a103..e42b7777eb77 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/build.gradle +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/build.gradle @@ -68,3 +68,18 @@ dependencies { implementation "io.projectreactor:reactor-core:3.7.11" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-client' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/build.gradle b/samples/client/echo_api/kotlin-model-prefix-type-mappings/build.gradle index a95a10d88644..3d5805b2d47b 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/build.gradle +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/build.gradle @@ -63,3 +63,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-client-prefix-mapping' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/others/kotlin-integer-enum/build.gradle b/samples/client/others/kotlin-integer-enum/build.gradle index 55821ba0b61f..9279bbd492bc 100644 --- a/samples/client/others/kotlin-integer-enum/build.gradle +++ b/samples/client/others/kotlin-integer-enum/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-integer-enum' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/build.gradle b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/build.gradle index 55821ba0b61f..234a576851c7 100644 --- a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/build.gradle +++ b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-okhttp-non-ascii-headers' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle index 55821ba0b61f..107b401ddfdd 100644 --- a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-okhttp4-parameter-tests' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/others/kotlin-jvm-okhttp-path-comments/build.gradle b/samples/client/others/kotlin-jvm-okhttp-path-comments/build.gradle index 55821ba0b61f..887b8ce67617 100644 --- a/samples/client/others/kotlin-jvm-okhttp-path-comments/build.gradle +++ b/samples/client/others/kotlin-jvm-okhttp-path-comments/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-okhttp4-path-comments' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/build.gradle b/samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/build.gradle index 92471e246ce9..ccb637c3e025 100644 --- a/samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/build.gradle +++ b/samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/build.gradle @@ -70,3 +70,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-oneOf-discriminator' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/build.gradle b/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/build.gradle index d6568983d230..c394fa803347 100644 --- a/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/build.gradle +++ b/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/build.gradle @@ -66,3 +66,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-allOf-discriminator' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-allOf-discriminator/build.gradle b/samples/client/petstore/kotlin-allOf-discriminator/build.gradle index 55821ba0b61f..3555fc9c4497 100644 --- a/samples/client/petstore/kotlin-allOf-discriminator/build.gradle +++ b/samples/client/petstore/kotlin-allOf-discriminator/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-allOf-discriminator' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-array-integer-enum/build.gradle b/samples/client/petstore/kotlin-array-integer-enum/build.gradle index 55821ba0b61f..237a0e9876f3 100644 --- a/samples/client/petstore/kotlin-array-integer-enum/build.gradle +++ b/samples/client/petstore/kotlin-array-integer-enum/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-array-integer-enum' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/build.gradle b/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/build.gradle index 55821ba0b61f..de6305b12682 100644 --- a/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/build.gradle +++ b/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-array-simple-string-jvm-okhttp4' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/build.gradle b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/build.gradle index 55821ba0b61f..50dfdf52ddfa 100644 --- a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/build.gradle +++ b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-bigdecimal-default-okhttp4' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/build.gradle b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/build.gradle index 55821ba0b61f..1a1320388fd6 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/build.gradle +++ b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-default-values-jvm-okhttp4' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-default-values-jvm-retrofit2/build.gradle b/samples/client/petstore/kotlin-default-values-jvm-retrofit2/build.gradle index ea01ca8af04f..f626762be71f 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-retrofit2/build.gradle +++ b/samples/client/petstore/kotlin-default-values-jvm-retrofit2/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-default-values-jvm-retrofit2' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-enum-default-value/build.gradle b/samples/client/petstore/kotlin-enum-default-value/build.gradle index 55821ba0b61f..430b0439e1e2 100644 --- a/samples/client/petstore/kotlin-enum-default-value/build.gradle +++ b/samples/client/petstore/kotlin-enum-default-value/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-enum-default-value' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-explicit/build.gradle b/samples/client/petstore/kotlin-explicit/build.gradle index 559604d7fc98..186b84b5df1c 100644 --- a/samples/client/petstore/kotlin-explicit/build.gradle +++ b/samples/client/petstore/kotlin-explicit/build.gradle @@ -63,3 +63,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-explicit' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-gson/build.gradle b/samples/client/petstore/kotlin-gson/build.gradle index 58f0e6fe9a98..f21c178a9fa0 100644 --- a/samples/client/petstore/kotlin-gson/build.gradle +++ b/samples/client/petstore/kotlin-gson/build.gradle @@ -58,3 +58,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-gson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jackson/build.gradle b/samples/client/petstore/kotlin-jackson/build.gradle index efcc639276cc..5b1ce2ae86c2 100644 --- a/samples/client/petstore/kotlin-jackson/build.gradle +++ b/samples/client/petstore/kotlin-jackson/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jackson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-json-request-string/build.gradle b/samples/client/petstore/kotlin-json-request-string/build.gradle index 34cd5ecbf48c..848e29cadcc3 100644 --- a/samples/client/petstore/kotlin-json-request-string/build.gradle +++ b/samples/client/petstore/kotlin-json-request-string/build.gradle @@ -67,3 +67,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-json-request-string' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-jackson/build.gradle b/samples/client/petstore/kotlin-jvm-jackson/build.gradle index d2382a838b65..842ed146a87d 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/build.gradle +++ b/samples/client/petstore/kotlin-jvm-jackson/build.gradle @@ -65,3 +65,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-jackson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/build.gradle b/samples/client/petstore/kotlin-jvm-ktor-gson/build.gradle index 0e33b759e883..48b26382e578 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/build.gradle +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/build.gradle @@ -62,3 +62,18 @@ dependencies { implementation "io.ktor:ktor-client-gson:$ktor_version" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-ktor-gson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/build.gradle b/samples/client/petstore/kotlin-jvm-ktor-jackson/build.gradle index 52ff20b1682d..c08b8cc924e5 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/build.gradle +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "io.ktor:ktor-serialization-jackson:$ktor_version" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-ktor-jackson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/build.gradle b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/build.gradle index 66d2f597db73..297807bcb797 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/build.gradle +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/build.gradle @@ -68,3 +68,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-ktor-kotlinx_serialization' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/build.gradle b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/build.gradle index 2170c4b70eab..1a2cf250cfb3 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/build.gradle +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/build.gradle @@ -59,3 +59,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-okhttp4-coroutines-client' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle b/samples/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle index dace8d64ea27..a28b901fbdd1 100644 --- a/samples/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle +++ b/samples/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-coroutines-client' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/build.gradle b/samples/client/petstore/kotlin-jvm-spring-2-webclient/build.gradle index 57c605fbe5ff..791e0a8d6dd8 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/build.gradle +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/build.gradle @@ -62,3 +62,18 @@ dependencies { implementation "io.projectreactor:reactor-core:3.7.11" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-spring-webclient' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/build.gradle b/samples/client/petstore/kotlin-jvm-spring-3-restclient/build.gradle index dde9b1789935..523faa93feb9 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/build.gradle +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/build.gradle @@ -66,3 +66,18 @@ dependencies { implementation "org.springframework.boot:spring-boot-starter-web:$spring_boot_version" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-spring-restclient' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/build.gradle b/samples/client/petstore/kotlin-jvm-spring-3-webclient/build.gradle index a43cda96a103..8f2825e99217 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/build.gradle +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/build.gradle @@ -68,3 +68,18 @@ dependencies { implementation "io.projectreactor:reactor-core:3.7.11" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-spring-webclient' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/build.gradle b/samples/client/petstore/kotlin-jvm-vertx-gson/build.gradle index 76e9949973f9..909384bbaf34 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/build.gradle +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/build.gradle @@ -62,3 +62,18 @@ dependencies { implementation "io.vertx:vertx-lang-kotlin:$vertx_version" implementation "io.vertx:vertx-uri-template:$vertx_version" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-vertx' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/build.gradle b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/build.gradle index ee735c235956..7e9da9d08d7f 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/build.gradle +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/build.gradle @@ -66,3 +66,18 @@ dependencies { implementation "io.vertx:vertx-uri-template:$vertx_version" implementation "io.vertx:vertx-lang-kotlin-coroutines:$vertx_version" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-vertx' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/build.gradle b/samples/client/petstore/kotlin-jvm-vertx-jackson/build.gradle index 68992293d8a3..b09bd4d58303 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/build.gradle +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "io.vertx:vertx-lang-kotlin:$vertx_version" implementation "io.vertx:vertx-uri-template:$vertx_version" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-vertx' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/build.gradle b/samples/client/petstore/kotlin-jvm-vertx-moshi/build.gradle index c0289727d077..3998516f18bc 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/build.gradle +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "io.vertx:vertx-lang-kotlin:$vertx_version" implementation "io.vertx:vertx-uri-template:$vertx_version" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-jvm-vertx' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/build.gradle b/samples/client/petstore/kotlin-kotlinx-datetime/build.gradle index df43b8ff4ba5..0a9c2c96488b 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/build.gradle +++ b/samples/client/petstore/kotlin-kotlinx-datetime/build.gradle @@ -70,3 +70,18 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.7.1" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-threetenbp' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/build.gradle b/samples/client/petstore/kotlin-model-prefix-type-mappings/build.gradle index dace8d64ea27..430a2d88714b 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/build.gradle +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/build.gradle @@ -64,3 +64,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-client-prefix-mapping' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-modelMutable/build.gradle b/samples/client/petstore/kotlin-modelMutable/build.gradle index 55821ba0b61f..0dd6ffa38e49 100644 --- a/samples/client/petstore/kotlin-modelMutable/build.gradle +++ b/samples/client/petstore/kotlin-modelMutable/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-modelMutable' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-moshi-codegen/build.gradle b/samples/client/petstore/kotlin-moshi-codegen/build.gradle index 06078e9541d3..9b4e09aab24b 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/build.gradle +++ b/samples/client/petstore/kotlin-moshi-codegen/build.gradle @@ -62,3 +62,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-moshi-codegen' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-name-parameter-mappings/build.gradle b/samples/client/petstore/kotlin-name-parameter-mappings/build.gradle index 55821ba0b61f..02b7996ec457 100644 --- a/samples/client/petstore/kotlin-name-parameter-mappings/build.gradle +++ b/samples/client/petstore/kotlin-name-parameter-mappings/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-client' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-nonpublic/build.gradle b/samples/client/petstore/kotlin-nonpublic/build.gradle index 55821ba0b61f..a61cddb7d98d 100644 --- a/samples/client/petstore/kotlin-nonpublic/build.gradle +++ b/samples/client/petstore/kotlin-nonpublic/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-nonpublic' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-nullable/build.gradle b/samples/client/petstore/kotlin-nullable/build.gradle index 55821ba0b61f..14639769295c 100644 --- a/samples/client/petstore/kotlin-nullable/build.gradle +++ b/samples/client/petstore/kotlin-nullable/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-nullable' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/build.gradle b/samples/client/petstore/kotlin-retrofit2-jackson/build.gradle index d2382a838b65..071676a8a35a 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/build.gradle +++ b/samples/client/petstore/kotlin-retrofit2-jackson/build.gradle @@ -65,3 +65,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-retrofit2-jackson' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/build.gradle b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/build.gradle index ea9b39756cb4..17a077486c8d 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/build.gradle +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/build.gradle @@ -71,3 +71,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-retrofit2-kotlinx_serialization' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/build.gradle b/samples/client/petstore/kotlin-retrofit2-rx3/build.gradle index b971e459a100..fcfaf85f6989 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/build.gradle +++ b/samples/client/petstore/kotlin-retrofit2-rx3/build.gradle @@ -68,3 +68,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-retrofit2-rx3' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-retrofit2/build.gradle b/samples/client/petstore/kotlin-retrofit2/build.gradle index 3fb2fc6b8eba..9bb2c4d2ba86 100644 --- a/samples/client/petstore/kotlin-retrofit2/build.gradle +++ b/samples/client/petstore/kotlin-retrofit2/build.gradle @@ -65,3 +65,18 @@ dependencies { implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-retrofit2' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-string/build.gradle b/samples/client/petstore/kotlin-string/build.gradle index 55821ba0b61f..d24292383f63 100644 --- a/samples/client/petstore/kotlin-string/build.gradle +++ b/samples/client/petstore/kotlin-string/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-string' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-threetenbp/build.gradle b/samples/client/petstore/kotlin-threetenbp/build.gradle index 1a219f17b11c..07082f1f42ee 100644 --- a/samples/client/petstore/kotlin-threetenbp/build.gradle +++ b/samples/client/petstore/kotlin-threetenbp/build.gradle @@ -61,3 +61,18 @@ dependencies { implementation "org.threeten:threetenbp:1.7.2" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-threetenbp' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin-uppercase-enum/build.gradle b/samples/client/petstore/kotlin-uppercase-enum/build.gradle index d6568983d230..64918c0c2b53 100644 --- a/samples/client/petstore/kotlin-uppercase-enum/build.gradle +++ b/samples/client/petstore/kotlin-uppercase-enum/build.gradle @@ -66,3 +66,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" } } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-uppercase-enum' + version = '1.0.0' + from components.java + } + } +} diff --git a/samples/client/petstore/kotlin/build.gradle b/samples/client/petstore/kotlin/build.gradle index 55821ba0b61f..02b7996ec457 100644 --- a/samples/client/petstore/kotlin/build.gradle +++ b/samples/client/petstore/kotlin/build.gradle @@ -60,3 +60,18 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:5.1.0" testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" } + +java { + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'org.openapitools' + artifactId = 'kotlin-petstore-client' + version = '1.0.0' + from components.java + } + } +}