File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments