Added dynamic versioning to the project

This commit is contained in:
Jan Duchnowski 2023-05-05 17:24:33 +02:00
parent 6e71aaa44c
commit 13b30bcb1a
2 changed files with 12 additions and 2 deletions

View file

@ -3,12 +3,13 @@ plugins {
id 'org.springframework.boot' version '3.0.4'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.graalvm.buildtools.native' version '0.9.20'
id 'pl.allegro.tech.build.axion-release' version '1.15.0'
}
apply plugin: 'java'
group = 'org.springframework.samples'
version = '3.0.0'
version = scmVersion.version
sourceCompatibility = '17'
repositories {
@ -40,3 +41,12 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
}
task customTask() {
group 'Test report'
dependsOn 'build'
doLast {
def testReporFile = new File("${project.buildDir}/reports/tests/test", 'index.html')
java.awt.Desktop.desktop.browse(testReporFile.toURI())
}
}

View file

@ -1 +1 @@
rootProject.name = 'spring-petclinic'
rootProject.name = 'spring-petclinic-new-name'