added ability to publish kotlin-client to maven local repo (#22438)

* this allows pushing client jar to local maven repository gradle -i clean jar publishToMavenLocal;  also generates jar with sources;

* this allows pushing client jar to local maven repository gradle -i clean jar publishToMavenLocal;  also generates jar with sources;
This commit is contained in:
Konstantin Ignatyev
2025-11-26 00:59:41 -08:00
committed by GitHub
parent ea62c676c9
commit b9d4b56d1c
50 changed files with 750 additions and 0 deletions

View File

@@ -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
}
}
}