mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
[update] Change in the build file
This commit is contained in:
parent
6148ddd967
commit
88fb7dc93b
1 changed files with 14 additions and 1 deletions
15
build.gradle
15
build.gradle
|
@ -6,7 +6,9 @@ plugins {
|
|||
id 'org.cyclonedx.bom' version '1.10.0'
|
||||
id 'io.spring.javaformat' version '0.0.43'
|
||||
id "io.spring.nohttp" version "0.0.11"
|
||||
id 'pl.allegro.tech.build.axion-release' version "1.18.7"
|
||||
}
|
||||
version = scmVersion.version
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'checkstyle'
|
||||
|
@ -15,7 +17,6 @@ apply plugin: 'io.spring.javaformat'
|
|||
gradle.startParameter.excludedTaskNames += [ "checkFormatAot", "checkFormatAotTest" ]
|
||||
|
||||
group = 'org.springframework.samples'
|
||||
version = '3.4.0'
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
|
@ -88,3 +89,15 @@ checkFormatAotTest.enabled = false
|
|||
|
||||
formatAot.enabled = false
|
||||
formatAotTest.enabled = false
|
||||
|
||||
task showInBrowser {
|
||||
doLast {
|
||||
def file = project.file('build/reports/tests/test/index.html')
|
||||
exec {
|
||||
commandLine 'open', file
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("showInBrowser").configure{ dependsOn ("build") }
|
||||
tasks.named("showInBrowser").configure{ dependsOn("test") }
|
Loading…
Reference in a new issue