Introduce automatic Git tag based version management in Gradle build
This commit is contained in:
committed by
Petri Tuomola
parent
46ff275d07
commit
c691c11699
+7
-1
@@ -70,6 +70,7 @@ plugins {
|
|||||||
id 'org.asciidoctor.jvm.gems' version '3.3.2' apply false
|
id 'org.asciidoctor.jvm.gems' version '3.3.2' apply false
|
||||||
id 'org.asciidoctor.kindlegen.base' version '3.2.0' 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 "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 "org.sonarqube" version "3.3"
|
||||||
id "com.github.andygoossens.modernizer" version "1.6.1" apply false
|
id "com.github.andygoossens.modernizer" version "1.6.1" apply false
|
||||||
id 'com.github.spotbugs' version '5.0.3' 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 {
|
allprojects {
|
||||||
group = 'org.apache.fineract'
|
group = 'org.apache.fineract'
|
||||||
|
|
||||||
|
jgitver {
|
||||||
|
strategy 'PATTERN'
|
||||||
|
versionPattern '${M}.${m}.${p}-${meta.GIT_SHA1_8}'
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ asciidoctorj {
|
|||||||
imagesdir: 'images',
|
imagesdir: 'images',
|
||||||
diagrams: 'diagrams',
|
diagrams: 'diagrams',
|
||||||
years: '2015-2020',
|
years: '2015-2020',
|
||||||
revnumber: "$releaseVersion".toString(),
|
revnumber: "$version".toString(),
|
||||||
rootdir: "$rootDir".toString(),
|
rootdir: "$rootDir".toString(),
|
||||||
baseurl: 'fineract.apache.org'
|
baseurl: 'fineract.apache.org'
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ jib {
|
|||||||
to {
|
to {
|
||||||
image = 'fineract'
|
image = 'fineract'
|
||||||
tags = [
|
tags = [
|
||||||
"${releaseVersion}",
|
"${version}",
|
||||||
'latest'
|
'latest'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,5 +17,4 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
org.gradle.jvmargs=-Xmx2g
|
org.gradle.jvmargs=-Xmx2g
|
||||||
releaseVersion=1.5.0
|
|
||||||
buildType=BUILD
|
buildType=BUILD
|
||||||
|
|||||||
Reference in New Issue
Block a user