Skip to content

Commit

Permalink
feat: Update to jdk21
Browse files Browse the repository at this point in the history
Before this fix, we use lombok-maven-plugin version 1.18.20.0 which use lombok 1.18.20 which is not compatible with jdk21.
This fix is a workaround waiting this pr to be merged : awhitford/lombok.maven#180 and a new artifact released

Resolves Meeds-io/MIPs#91
  • Loading branch information
rdenarie authored and exo-swf committed May 22, 2024
1 parent 79ee0d4 commit 24543a9
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</distributionManagement>
<properties>
<argLine></argLine>
<surefire.argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.xml/jdk.xml.internal=ALL-UNNAMED --add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens=java.base/jdk.internal.module=ALL-UNNAMED --add-opens=java.base/java.lang.module=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.nio.channels.spi=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.jar=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/java.lang.management=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED</surefire.argLine>
<exo.product.name>${project.name}</exo.product.name>
<!-- **************************************** -->
<!-- Jira Settings -->
Expand Down Expand Up @@ -112,7 +113,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<version.dependency.plugin>3.3.0</version.dependency.plugin>
<version.deploy.plugin>2.8.2</version.deploy.plugin>
<version.eclipse.plugin>2.10</version.eclipse.plugin>
<version.enforcer.plugin>3.3.0</version.enforcer.plugin>
<version.enforcer.plugin>3.4.1</version.enforcer.plugin>
<version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin>
<version.gmaven.plugin>1.5</version.gmaven.plugin>
<version.gmavenplus.plugin>1.5</version.gmavenplus.plugin>
Expand All @@ -139,7 +140,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<version.release.plugin>3.0.1</version.release.plugin>
<version.remote-resources.plugin.version>1.5</version.remote-resources.plugin.version>
<version.resources.plugin>3.2.0</version.resources.plugin>
<version.shade.plugin>3.4.1</version.shade.plugin>
<version.shade.plugin>3.5.3</version.shade.plugin>
<version.site.plugin>3.4</version.site.plugin>
<version.sonar-maven-report.plugin>0.1</version.sonar-maven-report.plugin>
<version.source.plugin>3.0.0</version.source.plugin>
Expand All @@ -151,6 +152,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<version.xml.plugin>1.0</version.xml.plugin>
<version.owasp.dependency-check-maven.plugin>3.2.0</version.owasp.dependency-check-maven.plugin>
<org.lombok.plugin.version>1.18.20.0</org.lombok.plugin.version>
<org.lombok.version>1.18.30</org.lombok.version>
<com.github.eirslett.frontend.version>1.15.0</com.github.eirslett.frontend.version>
<io.openapitools.swagger.version>2.1.6</io.openapitools.swagger.version>
<node.version>v16.0.0</node.version>
Expand All @@ -174,8 +176,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<!-- maven-clirr-plugin -->
<textOutputFile>${project.build.directory}/clirr-report.txt</textOutputFile>
<!-- maven-compiler-plugin -->
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
<maven.compiler.showWarnings>true</maven.compiler.showWarnings>
<!-- maven-dependency-plugin -->
Expand All @@ -185,7 +187,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<jdk.min.version>${maven.compiler.source}</jdk.min.version>
<exo.release.enforce.requirePluginVersions.banSnapshots>true</exo.release.enforce.requirePluginVersions.banSnapshots>
<!-- Extra enforcer rules -->
<extra-enforcer-rules.version>1.6.1</extra-enforcer-rules.version>
<extra-enforcer-rules.version>1.8.0</extra-enforcer-rules.version>
<!-- gmaven-plugin -->
<gmaven-plugin.providerSelection>2.0</gmaven-plugin.providerSelection>
<!-- maven-gpg-plugin -->
Expand Down Expand Up @@ -764,7 +766,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<version>${version.surefire.plugin}</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
<argLine>@{argLine} --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.xml/jdk.xml.internal=ALL-UNNAMED --add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens=java.base/jdk.internal.module=ALL-UNNAMED --add-opens=java.base/java.lang.module=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.nio.channels.spi=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.jar=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED</argLine>
<argLine>@{argLine} @{surefire.argLine}</argLine>
<systemPropertyVariables>
<!-- To avoid conflicts on CI server - PAR-192 -->
<!-- There is an incompatibility with Byteman - used in social -->
Expand Down Expand Up @@ -876,6 +878,13 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>${org.lombok.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.lombok.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-sources</phase>
Expand Down

0 comments on commit 24543a9

Please sign in to comment.