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