Skip to content

Commit

Permalink
Added java distribution to build-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koushikr committed Dec 6, 2023
1 parent 71da56e commit a344107
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ jobs:
with:
java-version: 17
cache: maven
distribution: 'tumerin'
- name: Build with Maven
run: mvn -B clean package --file pom.xml
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,21 @@
</plugins>
</build>
</profile>
<!-- The following are required for dns cache manipulator.
Ref: https://github.com/alibaba/java-dns-cache-manipulator#jvm-settings-for-java-16 -->
<profile>
<id>add-java-open-options-for-jdk16+</id>
<activation>
<jdk>[16,)</jdk>
</activation>
<properties>
<argLine>
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/sun.net=ALL-UNNAMED
</argLine>
</properties>
</profile>

</profiles>

</project>

0 comments on commit a344107

Please sign in to comment.