Skip to content

Commit ef64773

Browse files
committed
fix(ci): java 17 build
1 parent 9a2e139 commit ef64773

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/maven.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
- name: Set up Maven Central Repository
1515
uses: actions/setup-java@v3
1616
with:
17-
distribution: 'temurin'
18-
java-version: 8
17+
distribution: 'adopt'
18+
java-version: 17
1919
server-id: central
2020
server-username: MAVEN_USERNAME
2121
server-password: MAVEN_CENTRAL_TOKEN
2222
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2323
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2424

25+
- name: Prepare Maven environnement with Java 17 for deployment to Sonatype
26+
run: export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
27+
2528
- name: Deploy with Maven
2629
run: mvn -B clean deploy -DskipTests -PsonatypeDeploy
2730
env:

0 commit comments

Comments
 (0)