Skip to content

Commit a6d684f

Browse files
Copilottorosent
andcommitted
Fix SpotBugs Java version - run with JDK 11
SpotBugs 4.9.2 requires Java 11+ (class file version 55.0) but the workflow was running it with Java 8. Updated workflow to use JDK_11 environment variable for SpotBugs tasks. Co-authored-by: torosent <[email protected]>
1 parent 5472f1b commit a6d684f

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
@@ -45,7 +45,9 @@ jobs:
4545
run: ./gradlew build -x test
4646

4747
- name: Run SpotBugs
48-
run: ./gradlew spotbugsMain spotbugsTest
48+
run: |
49+
export JAVA_HOME=$JDK_11
50+
./gradlew spotbugsMain spotbugsTest
4951
continue-on-error: false
5052

5153
- name: Upload SpotBugs reports

0 commit comments

Comments
 (0)