Skip to content

Commit 114d51d

Browse files

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
with:
6666
distribution: temurin
6767
java-version: 17
68-
cache: gradle
6968

7069
- name: Test project
7170
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
@@ -74,6 +73,7 @@ jobs:
7473
arguments: |
7574
test jacocoTestReport -x processResources -x processTestResources
7675
--parallel
76+
--configuration-cache
7777
--build-cache
7878
--no-daemon
7979
--scan
@@ -100,6 +100,7 @@ jobs:
100100
timeout-minutes: 10
101101
permissions:
102102
contents: write
103+
pull-requests: write
103104
env:
104105
VERSION: 1.23.0
105106
steps:
@@ -126,7 +127,6 @@ jobs:
126127
with:
127128
distribution: temurin
128129
java-version: 17
129-
cache: gradle
130130

131131
- name: Analyze code quality (main)
132132
if: startsWith(github.event_name, 'pull_request') == false
@@ -136,6 +136,9 @@ jobs:
136136
dependency-graph: generate-and-submit
137137
arguments: |
138138
sonar -x compileJava -x compileTestJava
139+
--parallel
140+
--configuration-cache
141+
--build-cache
139142
--no-daemon
140143
--scan
141144
-Pversion=${{ format('{0}+{1}', env.VERSION, github.RUN_NUMBER) }}
@@ -150,8 +153,13 @@ jobs:
150153
if: startsWith(github.event_name, 'pull_request')
151154
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
152155
with:
156+
gradle-home-cache-cleanup: true
157+
add-job-summary-as-pr-comment: always
153158
arguments: |
154159
sonar -x compileJava -x compileTestJava
160+
--parallel
161+
--configuration-cache
162+
--build-cache
155163
--no-daemon
156164
--scan
157165
-Pversion=${{ format('{0}+{1}', env.VERSION, github.RUN_NUMBER) }}

build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ plugins {
44
alias(libs.plugins.sonarqube)
55
}
66

7+
repositories {
8+
gradlePluginPortal()
9+
}
10+
711
subprojects {
812
apply(plugin = "java")
913
apply(plugin = "jacoco")

0 commit comments

Comments
 (0)