Skip to content

Commit 3f1b5c7

Browse files
committed
this allows pushing client jar to local maven repository gradle -i clean jar publishToMavenLocal; also generates jar with sources;
1 parent 6e0fe09 commit 3f1b5c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,18 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
233233
}
234234
}
235235
{{/kotlinx_serialization}}
236+
237+
java {
238+
withSourcesJar()
239+
}
240+
241+
publishing {
242+
publications {
243+
maven(MavenPublication) {
244+
groupId = '{{groupId}}'
245+
artifactId = '{{artifactId}}'
246+
version = '{{artifactVersion}}'
247+
from components.java
248+
}
249+
}
250+
}

0 commit comments

Comments
 (0)