-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Releasing doesn't remove "snapshot" from the jar names #371
Comments
Same for me,
Now, when I start with the gradle build (v7.5.1) --> |
I was experiencing the same problem. However, in my case, the issue was that the version property from the .kts script was taking preference over the |
I am experiencing the same problem, but might have a hint on where to look: It seems this behavior is connected to the tagTemplate. With only the following block in the
i.e. running However, if I add Based on some quick skimming of the code, the issue seems to be in PluginHelper#tagName():
The property used for the tag template seems to be |
I was able to work around this. I was having this issue only in Kotlin builds, and not in Groovy builds. This plugins {
id 'net.researchgate.release' version '3.0.2'
}
release {
tagTemplate = 'v${version}' // note: single quotes
}
But this plugins {
id("net.researchgate.release") version "3.0.2"
}
release {
tagTemplate.set("v${version}") // note: double quotes
} This seems to be a runtime interpolation issue. Once I escaped the dollar sign, things worked: plugins {
id("net.researchgate.release") version "3.0.2"
}
release {
tagTemplate.set("v\${version}")
} |
I have
In the gradle.properties, but when I do release with release.useAutomaticVersion=true, the jars I find in build/libs have the "snapshot" suffix.
My build.gradle contains:
The text was updated successfully, but these errors were encountered: