File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed
Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on :
3+ push :
4+ pull_request :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ with :
12+ fetch-depth : 0
13+ - uses : actions/setup-java@v4
14+ with :
15+ java-version : 17
16+ distribution : temurin
17+ cache : ' gradle'
18+ - name : Build and Test
19+ run : ./gradlew check --info
20+ - name : Sonar Analysis
21+ run : ./gradlew jacocoTestReport sonar --info
22+ if : env.SONAR_TOKEN != null
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 11plugins {
22 id ' java-library'
33 id ' io.freefair.lombok' version ' 8.6'
4+ id ' jacoco'
5+ id ' org.sonarqube'
46}
57
68java {
911 }
1012}
1113
14+ jacocoTestReport {
15+ reports {
16+ xml. required = true
17+ }
18+ }
19+
20+ sonarqube {
21+ properties {
22+ property " sonar.projectKey" , " xenit-eu_java-hateoas-hal-client"
23+ property " sonar.organization" , " xenit-eu"
24+ property " sonar.host.url" , " https://sonarcloud.io"
25+ }
26+ }
27+
1228test {
1329 useJUnitPlatform()
1430}
Original file line number Diff line number Diff line change 1+ pluginManagement {
2+ plugins {
3+ id ' org.ajoberstar.grgit' version ' 5.2.2'
4+ id ' org.sonarqube' version ' 5.0.0.4638'
5+ }
6+ }
7+
8+ plugins {
9+ id ' org.ajoberstar.reckon.settings' version ' 0.18.3'
10+ id ' eu.xenit.enterprise-conventions.oss' version ' 0.5.1'
11+ }
12+
13+ dependencyResolutionManagement {
14+ repositories {
15+ mavenCentral()
16+ }
17+ }
18+
19+ reckon {
20+ defaultInferredScope = ' patch'
21+ snapshots()
22+ scopeCalc = calcScopeFromCommitMessages()
23+ stageCalc = { inventory , targetNormal -> java.util.Optional . empty() }
24+ }
25+
26+ rootProject. name = ' java-hateoas-hal-client'
You can’t perform that action at this time.
0 commit comments