We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d0241 commit 18484d3Copy full SHA for 18484d3
1 file changed
build.gradle.kts
@@ -108,6 +108,17 @@ tasks {
108
}
109
110
111
+tasks.named<Jar>("jar") {
112
+ // Keep jar enabled for Maven publishing
113
+ enabled = true
114
+ // Add custom naming: v before version and -api before .jar
115
+ if (version != "unspecified") {
116
+ archiveFileName.set("${rootProject.name}-v${version}-api.jar")
117
+ } else {
118
+ archiveFileName.set("${rootProject.name}-api.jar")
119
+ }
120
+}
121
+
122
java {
123
// Use Java 21 for compilation
124
toolchain {
0 commit comments