Add proper Java client publication to Gradle.

This commit is contained in:
2023-04-22 23:35:18 -07:00
parent 02105d8b00
commit 71afed326f

View File

@ -22,6 +22,8 @@ java {
val javaVersion = JavaVersion.toVersion(17)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
withSourcesJar()
}
sourceSets {
@ -74,6 +76,12 @@ protobuf {
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
repositories {
mavenLocal()