Skip to content

Commit a827b24

Browse files
authored
fix: publish shadow jar (#210)
1 parent 4a49925 commit a827b24

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111
id("com.diffplug.spotless") version "6.2.0"
1212

1313
id("me.champeau.jmh") version "0.6.7"
14+
id("com.github.johnrengelman.shadow") version "7.1.2"
1415
}
1516

1617
group = "io.hstream"
@@ -104,8 +105,8 @@ protobuf {
104105
publishing {
105106
publications {
106107
create<MavenPublication>("mavenJava") {
108+
project.shadow.component(this)
107109
artifactId = "hstreamdb-java"
108-
from(components["java"])
109110
versionMapping {
110111
usage("java-api") {
111112
fromResolutionOf("runtimeClasspath")
@@ -209,5 +210,12 @@ spotless {
209210
}
210211
}
211212

213+
tasks {
214+
shadowJar {
215+
archiveClassifier.set("")
216+
mergeServiceFiles()
217+
}
218+
}
219+
212220
jmh {
213221
}

0 commit comments

Comments
 (0)