mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 06:37:10 +00:00
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:
committed by
GitHub
parent
ea62c676c9
commit
b9d4b56d1c
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user