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 7e763e3 commit 87e4344Copy full SHA for 87e4344
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
val gitHubPackagesUser: String = System.getenv("PACKAGES_USER") ?: ""
@@ -103,13 +104,19 @@ tasks.named("githubRelease") {
103
104
dependsOn("signArchives")
105
106
-artifacts {
107
- archives(tasks.named("shadowJar"))
+publishing {
108
+ publications {
109
+ create<MavenPublication>("shadow") {
110
+ artifact(tasks.shadowJar) {
111
+ classifier = "" // ensure no "-all" suffix
112
+ }
113
114
115
116
117
signing {
118
useGpgCmd()
- sign(configurations.archives.get())
119
+ sign(publishing.publications["shadow"])
120
121
122
githubRelease {
0 commit comments