Merge pull request #4053 from Monits:qol
[core] Allow building PMD under Java 18+ #4053
This commit is contained in:
@ -44,6 +44,7 @@ Being based on a proper Antlr grammar, CPD can:
|
||||
* core
|
||||
* [#4021](https://github.com/pmd/pmd/pull/4021): \[core] CPD: Add total number of tokens to XML reports
|
||||
* [#4031](https://github.com/pmd/pmd/issues/4031): \[core] If report is written to stdout, stdout should not be closed
|
||||
* [#4053](https://github.com/pmd/pmd/pull/4053): \[core] Allow building PMD under Java 18+
|
||||
* java
|
||||
* [#4015](https://github.com/pmd/pmd/issues/4015): \[java] Support JDK 19
|
||||
* java-bestpractices
|
||||
|
14
pom.xml
14
pom.xml
@ -103,7 +103,8 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<pmd.website.baseurl>https://pmd.github.io/pmd</pmd.website.baseurl>
|
||||
|
||||
<argLine>-Xmx512m -Dfile.encoding=${project.build.sourceEncoding}</argLine>
|
||||
<argLine>-Xmx512m -Dfile.encoding=${project.build.sourceEncoding} ${extraArgLine}</argLine>
|
||||
<extraArgLine></extraArgLine> <!-- empty by default, profiles set it as needed -->
|
||||
|
||||
<pmd.build-tools.version>18</pmd.build-tools.version>
|
||||
|
||||
@ -1013,6 +1014,17 @@
|
||||
</pluginRepositories>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>Java 18+</id>
|
||||
<activation>
|
||||
<jdk>[18,)</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<!-- java.security.manager=allow is needed under Java 18+ for usages of org.junit.contrib.java.lang.system.ExpectedSystemExit -->
|
||||
<extraArgLine>-Djava.security.manager=allow</extraArgLine>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>pmd-release</id>
|
||||
<properties>
|
||||
|
Reference in New Issue
Block a user