Skip to content

Commit 2cae306

Browse files
Copilottorosent
andcommitted
Fix SpotBugs - run build task with JDK 11 too
SpotBugs runs as part of the 'build' task, not just in the explicit SpotBugs step. Updated the build step to also use JDK_11 since SpotBugs 4.9.2 requires Java 11+. Co-authored-by: torosent <[email protected]>
1 parent a6d684f commit 2cae306

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-validation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
uses: gradle/gradle-build-action@v2
4343

4444
- name: Build with Gradle
45-
run: ./gradlew build -x test
45+
run: |
46+
export JAVA_HOME=$JDK_11
47+
./gradlew build -x test
4648
4749
- name: Run SpotBugs
4850
run: |

0 commit comments

Comments
 (0)