We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a20bff commit 064dfdcCopy full SHA for 064dfdc
build.gradle.kts
@@ -5,6 +5,7 @@ plugins {
5
id("java")
6
id("java-library")
7
id("signing")
8
+ id("maven-publish")
9
}
10
11
repositories {
@@ -82,14 +83,19 @@ tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJ
82
83
archiveClassifier.set("")
84
85
-artifacts {
86
- add("archives", tasks.named("shadowJar"))
+publishing {
87
+ publications {
88
+ create<MavenPublication>("shadow") {
89
+ artifact(tasks.shadowJar) {
90
+ classifier = "" // ensure no "-all" suffix
91
+ }
92
93
94
95
96
signing {
97
useGpgCmd()
- // Sign both the sources JAR and the shadow JAR
- sign(configurations.getByName("archives"))
98
+ sign(publishing.publications["shadow"])
99
100
101
tasks.withType<JavaCompile> {
0 commit comments