Introduce automatic Git tag based version management in Gradle build

This commit is contained in:
Aleksandar Vidakovic
2022-01-02 21:26:09 +08:00
committed by Petri Tuomola
parent 46ff275d07
commit c691c11699
4 changed files with 9 additions and 4 deletions
+7 -1
View File
@@ -70,6 +70,7 @@ plugins {
id 'org.asciidoctor.jvm.gems' version '3.3.2' apply false
id 'org.asciidoctor.kindlegen.base' version '3.2.0' apply false
id "com.google.cloud.tools.jib" version "3.1.4" apply false
id 'fr.brouillard.oss.gradle.jgitver' version '0.10.0-rc03'
id "org.sonarqube" version "3.3"
id "com.github.andygoossens.modernizer" version "1.6.1" apply false
id 'com.github.spotbugs' version '5.0.3' apply false
@@ -86,8 +87,13 @@ ext['swaggerFile'] = "$rootDir/fineract-provider/build/generated/swagger-ui/fine
allprojects {
group = 'org.apache.fineract'
jgitver {
strategy 'PATTERN'
versionPattern '${M}.${m}.${p}-${meta.GIT_SHA1_8}'
}
repositories {
jcenter()
mavenCentral()
}
apply plugin: 'io.spring.dependency-management'
+1 -1
View File
@@ -51,7 +51,7 @@ asciidoctorj {
imagesdir: 'images',
diagrams: 'diagrams',
years: '2015-2020',
revnumber: "$releaseVersion".toString(),
revnumber: "$version".toString(),
rootdir: "$rootDir".toString(),
baseurl: 'fineract.apache.org'
]
+1 -1
View File
@@ -305,7 +305,7 @@ jib {
to {
image = 'fineract'
tags = [
"${releaseVersion}",
"${version}",
'latest'
]
}
-1
View File
@@ -17,5 +17,4 @@
# under the License.
#
org.gradle.jvmargs=-Xmx2g
releaseVersion=1.5.0
buildType=BUILD