From bd0129fb9f20729d0aa53c7afcee38620ce2961c Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 10 Sep 2021 01:38:59 +0200 Subject: [PATCH] Maven options --- .github/workflows/maven-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index bf5b357..e8f859d 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -44,6 +44,8 @@ jobs: run: | echo "REVISION: $REVISION" + export MAVEN_OPTS="--enable-preview --add-modules jdk.incubator.foreign -Dforeign.restricted=permit --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED" + mvn -B -Drevision=${REVISION} clean deploy env: MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}