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 b2405c950c1..193e89e4068 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 55821ba0b61..c432c559473 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 dde9b178993..8bb6eb103bc 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 a43cda96a10..e42b7777eb7 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 a95a10d8864..3d5805b2d47 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 55821ba0b61..9279bbd492b 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 55821ba0b61..234a576851c 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 55821ba0b61..107b401ddfd 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 55821ba0b61..887b8ce6761 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 92471e246ce..ccb637c3e02 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 d6568983d23..c394fa80334 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 55821ba0b61..3555fc9c449 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 55821ba0b61..237a0e9876f 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 55821ba0b61..de6305b1268 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 55821ba0b61..50dfdf52ddf 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 55821ba0b61..1a1320388fd 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 ea01ca8af04..f626762be71 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 55821ba0b61..430b0439e1e 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 559604d7fc9..186b84b5df1 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 58f0e6fe9a9..f21c178a9fa 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 efcc639276c..5b1ce2ae86c 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 34cd5ecbf48..848e29cadcc 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 d2382a838b6..842ed146a87 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 0e33b759e88..48b26382e57 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 52ff20b1682..c08b8cc924e 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 66d2f597db7..297807bcb79 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 2170c4b70ea..1a2cf250cfb 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 dace8d64ea2..a28b901fbdd 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 57c605fbe5f..791e0a8d6dd 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 dde9b178993..523faa93feb 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 a43cda96a10..8f2825e9921 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 76e9949973f..909384bbaf3 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 ee735c23595..7e9da9d08d7 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 68992293d8a..b09bd4d5830 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 c0289727d07..3998516f18b 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 df43b8ff4ba..0a9c2c96488 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 dace8d64ea2..430a2d88714 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 55821ba0b61..0dd6ffa38e4 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 06078e9541d..9b4e09aab24 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 55821ba0b61..02b7996ec45 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 55821ba0b61..a61cddb7d98 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 55821ba0b61..14639769295 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 d2382a838b6..071676a8a35 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 ea9b39756cb..17a077486c8 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 b971e459a10..fcfaf85f698 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 3fb2fc6b8eb..9bb2c4d2ba8 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 55821ba0b61..d24292383f6 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 1a219f17b11..07082f1f42e 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 d6568983d23..64918c0c2b5 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 55821ba0b61..02b7996ec45 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 + } + } +}