Skip to content

Commit e0cb86b

Browse files
committed
fix: fixed JAR names
1 parent 0b276f9 commit e0cb86b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@ application {
161161
tasks.named<Jar>("jar") {
162162
// Keep jar enabled for Maven publishing
163163
enabled = true
164-
// Don't add custom naming here - let it use standard naming for publishing
164+
// Add custom naming: v before version and -api before .jar
165+
if (version != "unspecified") {
166+
archiveFileName.set("${rootProject.name}-v${version}-api.jar")
167+
} else {
168+
archiveFileName.set("${rootProject.name}-api.jar")
169+
}
165170
}
166171

167172
java {

0 commit comments

Comments
 (0)