Skip to content
Permalink
Browse files
Adds dedicated profile for Java 17
  • Loading branch information
lukaszlenart committed Oct 18, 2021
1 parent 733783a commit c4f0df8437b9f29c9b89ae38225d5989787f6755
Showing 2 changed files with 25 additions and 6 deletions.
@@ -22,11 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11 ]
additionalArg: ['']
include:
- java: 17
additionalArg: --add-opens java.base/java.lang=ALL-UNNAMED
java: [ 8, 11, 17 ]
steps:
- uses: actions/checkout@v2.3.5
- name: Set up JDK ${{ matrix.java }}
@@ -36,4 +32,4 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven on Java ${{ matrix.java }}
run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress ${{ matrix.additionalArg }}
run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress
23 pom.xml
@@ -607,5 +607,28 @@ limitations under the License.
</pluginManagement>
</build>
</profile>

<profile>
<id>jdk17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<configuration>
<argLine>--illegal-access=permit</argLine>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
<argLine>--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED</argLine>
<argLine>-Dillegal-access=permit</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>

0 comments on commit c4f0df8

Please sign in to comment.