forked from lucee/extension-hibernate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 CI: Use Java 11 for maven formatter
The maven format plugin evidently requires Java 11: > Caused by: java.lang.UnsupportedClassVersionError: net/revelc/code/formatter/ValidateMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
- Loading branch information
1 parent
f226974
commit 576cbfc
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,10 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '8' | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Validate Java format | ||
run: mvn --batch-mode -f pom.xml formatter:validate | ||
- run: mvn --batch-mode -f pom.xml formatter:format | ||
|
||
- name: Commit Java Formatting Changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
|
@@ -29,7 +28,7 @@ jobs: | |
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: Ortus-Solutions/[email protected] | ||
with: | ||
cmd: run-script format | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters