Skip to content

Commit 52b2c30

Browse files
ci: update argline for build and ci flow
- alter deprecated argline to a functional alternative from JDK 17 and onwards - only publish the snapshot for actions on the master, not on branches Signed-off-by: Jasper Berton <[email protected]>
1 parent 81f5d52 commit 52b2c30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
publish-snapshot:
6565
needs: build-rpms
66-
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
66+
if: ${{ github.ref == 'refs/heads/master' }}
6767
runs-on: ubuntu-latest
6868
name: Publish snapshot to maven central
6969

pom.xml.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@
119119
<artifactId>maven-surefire-plugin</artifactId>
120120
<version>${maven-surefire-plugin.version}</version>
121121
<configuration>
122-
<argLine>--illegal-access=permit</argLine>
122+
<argLine>
123+
--add-opens java.base/java.lang=ALL-UNNAMED
124+
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
125+
</argLine>
123126
<parallel>all</parallel>
124127
<threadCount>4</threadCount>
125128
<perCoreThreadCount>true</perCoreThreadCount>

0 commit comments

Comments
 (0)