mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Updated build.gradle with JaCoCo and project info
This commit is contained in:
parent
eabdd6f976
commit
b04e046891
3 changed files with 23 additions and 0 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
23
build.gradle
23
build.gradle
|
@ -6,6 +6,7 @@ plugins {
|
||||||
id 'org.cyclonedx.bom' version '1.10.0'
|
id 'org.cyclonedx.bom' version '1.10.0'
|
||||||
id 'io.spring.javaformat' version '0.0.43'
|
id 'io.spring.javaformat' version '0.0.43'
|
||||||
id "io.spring.nohttp" version "0.0.11"
|
id "io.spring.nohttp" version "0.0.11"
|
||||||
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
@ -25,6 +26,18 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
jacoco {
|
||||||
|
toolVersion = "0.8.11" // The Latest version
|
||||||
|
}
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
dependsOn test // Ensures tests run before generating reports
|
||||||
|
reports {
|
||||||
|
xml.required = true // Required for CI tools (e.g., SonarQube)
|
||||||
|
html.required = true // Human-readable HTML report
|
||||||
|
}
|
||||||
|
}
|
||||||
ext.checkstyleVersion = "10.20.1"
|
ext.checkstyleVersion = "10.20.1"
|
||||||
ext.springJavaformatCheckstyleVersion = "0.0.43"
|
ext.springJavaformatCheckstyleVersion = "0.0.43"
|
||||||
ext.webjarsLocatorLiteVersion = "1.0.1"
|
ext.webjarsLocatorLiteVersion = "1.0.1"
|
||||||
|
@ -88,3 +101,13 @@ checkFormatAotTest.enabled = false
|
||||||
|
|
||||||
formatAot.enabled = false
|
formatAot.enabled = false
|
||||||
formatAotTest.enabled = false
|
formatAotTest.enabled = false
|
||||||
|
|
||||||
|
// Custom Build task
|
||||||
|
task printBuildInfo {
|
||||||
|
doLast {
|
||||||
|
println "Hi,we edit here!!"
|
||||||
|
println "Project: ${project.name}"
|
||||||
|
println "Version: ${version}"
|
||||||
|
println "Java Version: ${java.sourceCompatibility}" // Uses sourceCompatibility instead of toolchain
|
||||||
|
}
|
||||||
|
}
|
BIN
src/.DS_Store
vendored
Normal file
BIN
src/.DS_Store
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue