-
Notifications
You must be signed in to change notification settings - Fork 855
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
inject alpha into the version for metrics api and sdk. #2311
inject alpha into the version for metrics api and sdk. #2311
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2311 +/- ##
============================================
- Coverage 87.72% 87.71% -0.02%
- Complexity 2429 2430 +1
============================================
Files 270 270
Lines 8163 8163
Branches 906 906
============================================
- Hits 7161 7160 -1
- Misses 671 672 +1
Partials 331 331
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like an ok approach to me. Nice and simple!
@@ -6,6 +6,10 @@ plugins { | |||
id "ru.vyarus.animalsniffer" | |||
} | |||
|
|||
version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've stared a lot but don't think I'm missing it - isn't this just version += '-alpha'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not with -SNAPSHOT
versions, where -alpha
needs to be inserted in the middle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it - thanks
Resolves #2266.
After doing a
./gradlew clean build
the jars with alpha look like: