Prepare release.
This commit is contained in:
parent
659463b3b4
commit
65a5cfd286
39 changed files with 500 additions and 132 deletions
|
|
@ -5,6 +5,11 @@
|
|||
*/
|
||||
|
||||
plugins {
|
||||
// Apply the common versioning conventions.
|
||||
// Put this at the start, because accessing project.version before
|
||||
// this is applied makes things fail.
|
||||
id 'org.jdrupes.vmoperator.versioning-conventions'
|
||||
|
||||
// Apply the java Plugin to add support for Java.
|
||||
id 'java'
|
||||
|
||||
|
|
@ -13,9 +18,6 @@ plugins {
|
|||
|
||||
// Access to git information
|
||||
id 'org.ajoberstar.grgit'
|
||||
|
||||
// Apply the common versioning conventions.
|
||||
id 'org.jdrupes.vmoperator.versioning-conventions'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,13 @@ scmVersion {
|
|||
}
|
||||
var p = shortened.replace('.', '-') + "-"
|
||||
if (grgit.branch.current.name != "main"
|
||||
&& !grgit.branch.current.name.startsWith("release")) {
|
||||
&& grgit.branch.current.name != "HEAD"
|
||||
&& !grgit.branch.current.name.startsWith("release")
|
||||
&& !grgit.branch.current.name.startsWith("develop")) {
|
||||
p = p + grgit.branch.current.name.replace('/', '-') + "-"
|
||||
}
|
||||
prefix = p
|
||||
}
|
||||
}
|
||||
version = scmVersion.version
|
||||
project.version = scmVersion.version
|
||||
ext.isSnapshot = version.endsWith('-SNAPSHOT')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue