mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
release: added build changes
This commit is contained in:
parent
63a4fc7d18
commit
351f3a4ea8
1 changed files with 18 additions and 1 deletions
19
build.gradle
19
build.gradle
|
@ -6,6 +6,7 @@ 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"
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
@ -15,7 +16,7 @@ apply plugin: 'io.spring.javaformat'
|
|||
gradle.startParameter.excludedTaskNames += [ "checkFormatAot", "checkFormatAotTest" ]
|
||||
|
||||
group = 'org.springframework.samples'
|
||||
version = '3.3.0'
|
||||
version = scmVersion.version
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
|
@ -59,6 +60,22 @@ tasks.named('test') {
|
|||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.register("testResults") {
|
||||
group = "Reporting"
|
||||
description = "Open the browser with generated test results"
|
||||
dependsOn "build", "test"
|
||||
|
||||
doLast {
|
||||
def report_file = file("./build/reports/tests/test/index.html")
|
||||
if (report_file.exists()) {
|
||||
java.awt.Desktop.desktop.browse(report_file.toURI())
|
||||
} else {
|
||||
println "Test report file does not exist: ${report_file}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
checkstyle {
|
||||
configDirectory = project.file('src/checkstyle')
|
||||
configFile = file('src/checkstyle/nohttp-checkstyle.xml')
|
||||
|
|
Loading…
Reference in a new issue