Skip to content
Merged
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ permissions:
name: Maven Build

on:
push:
branches:
- 'wip/**'
pull_request:
branches: [ "master" ]
merge_group:
Expand All @@ -20,6 +23,11 @@ jobs:
experimental: [false]
steps:
- uses: actions/checkout@v3
- name: Prevent wip merge
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'wip/')
run: |
echo "::error::WIP branches cannot be merged"
exit 1
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down
22 changes: 20 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
<downloadSources>true</downloadSources>
<hamcrest.version>3.0</hamcrest.version>
<junit.version>4.13.2</junit.version>
<asm.version>8.0.1</asm.version>
<objenesis.version>3.4</objenesis.version>
<asm.version>9.8</asm.version>
<objenesis.version>3.4</objenesis.version>
<bsh.version>2.0b6</bsh.version>
Expand Down Expand Up @@ -330,6 +328,26 @@
</distributionManagement>

<profiles>
<profile>
<id>java9+</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down
Loading