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 0b276f9 commit e0cb86bCopy full SHA for e0cb86b
build.gradle.kts
@@ -161,7 +161,12 @@ application {
161
tasks.named<Jar>("jar") {
162
// Keep jar enabled for Maven publishing
163
enabled = true
164
- // Don't add custom naming here - let it use standard naming for publishing
+ // 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
+ }
170
}
171
172
java {
0 commit comments