mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Added dynamic versioning to the project
This commit is contained in:
parent
6e71aaa44c
commit
13b30bcb1a
2 changed files with 12 additions and 2 deletions
12
build.gradle
12
build.gradle
|
@ -3,12 +3,13 @@ plugins {
|
||||||
id 'org.springframework.boot' version '3.0.4'
|
id 'org.springframework.boot' version '3.0.4'
|
||||||
id 'io.spring.dependency-management' version '1.1.0'
|
id 'io.spring.dependency-management' version '1.1.0'
|
||||||
id 'org.graalvm.buildtools.native' version '0.9.20'
|
id 'org.graalvm.buildtools.native' version '0.9.20'
|
||||||
|
id 'pl.allegro.tech.build.axion-release' version '1.15.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
group = 'org.springframework.samples'
|
group = 'org.springframework.samples'
|
||||||
version = '3.0.0'
|
version = scmVersion.version
|
||||||
sourceCompatibility = '17'
|
sourceCompatibility = '17'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -40,3 +41,12 @@ dependencies {
|
||||||
tasks.named('test') {
|
tasks.named('test') {
|
||||||
useJUnitPlatform()
|
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())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
rootProject.name = 'spring-petclinic'
|
rootProject.name = 'spring-petclinic-new-name'
|
||||||
|
|
Loading…
Reference in a new issue