Try to fix version issue when building release.
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
This commit is contained in:
parent
837ee043aa
commit
2cb8c90357
2 changed files with 6 additions and 4 deletions
|
|
@ -5,6 +5,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
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.
|
// Apply the java Plugin to add support for Java.
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
||||||
|
|
@ -13,9 +18,6 @@ plugins {
|
||||||
|
|
||||||
// Access to git information
|
// Access to git information
|
||||||
id 'org.ajoberstar.grgit'
|
id 'org.ajoberstar.grgit'
|
||||||
|
|
||||||
// Apply the common versioning conventions.
|
|
||||||
id 'org.jdrupes.vmoperator.versioning-conventions'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,5 @@ scmVersion {
|
||||||
prefix = p
|
prefix = p
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
version = scmVersion.version
|
project.version = scmVersion.version
|
||||||
ext.isSnapshot = version.endsWith('-SNAPSHOT')
|
ext.isSnapshot = version.endsWith('-SNAPSHOT')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue