Github is unreliable, set parameters on maven itself

This commit is contained in:
Andrea Cavalli 2021-09-10 12:14:04 +02:00
parent 7feeb4a9ce
commit d5c3263878
2 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,6 @@ 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 }}

View File

@ -13,6 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0-SNAPSHOT</revision>
<jvm.options>--enable-preview --add-modules jdk.incubator.foreign -Dforeign.restricted=permit --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED</jvm.options>
</properties>
<repositories>
<repository>
@ -472,6 +473,7 @@
<annotationProcessor>io.soabase.recordbuilder.processor.RecordBuilderProcessor</annotationProcessor>
</annotationProcessors>
<useIncrementalCompilation>false</useIncrementalCompilation>
<compilerArgs>${jvm.options}</compilerArgs>
</configuration>
</plugin>
<plugin>
@ -503,6 +505,9 @@
<version>5.8.0-M1</version>
</dependency>
</dependencies>
<configuration>
<argLine>${jvm.options}</argLine>
</configuration>
</plugin>
</plugins>
</build>