Github is unreliable, set parameters on maven itself
This commit is contained in:
parent
7feeb4a9ce
commit
d5c3263878
2
.github/workflows/maven-publish.yml
vendored
2
.github/workflows/maven-publish.yml
vendored
@ -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 }}
|
||||
|
5
pom.xml
5
pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user