Skip to content

Commit

Permalink
enh: Compiles on JDK 21. Fixes #1077
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Sep 23, 2023
1 parent 946aab8 commit f1889f8
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 24 deletions.
24 changes: 16 additions & 8 deletions integration-tests/jakarta-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
<arquillian.version>1.7.1.Final</arquillian.version>
<arquillian.drone.version>2.5.6</arquillian.drone.version>
<arquillian.graphene.version>2.5.4</arquillian.graphene.version>
<failsafe.argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
Expand Down Expand Up @@ -137,12 +139,6 @@
<version>2.1.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito-inline.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
Expand Down Expand Up @@ -185,7 +181,7 @@
<dependency>
<groupId>org.jboss.arquillian.graphene</groupId>
<artifactId>graphene-webdriver</artifactId>
<version>2.5.4</version>
<version>${arquillian.graphene.version}</version>
<scope>test</scope>
<type>pom</type>
</dependency>
Expand All @@ -203,7 +199,7 @@
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-drone-bom</artifactId>
<version>2.5.6</version>
<version>${arquillian.drone.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -219,6 +215,18 @@

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mock-maker-inline
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@
<!-- Test 3rd-party dependencies: -->
<easymock.version>5.2.0</easymock.version>
<mockito.version>5.5.0</mockito.version>
<mockito-inline.version>5.2.0</mockito-inline.version>
<bytebuddy.version>1.14.8</bytebuddy.version>
<gmaven.version>3.0.0</gmaven.version>
<groovy.version>4.0.13</groovy.version>
<groovy.version>4.0.15</groovy.version>
<junit.version>5.10.0</junit.version>
<junit.server.jetty.version>3.0.0</junit.server.jetty.version>
<hibernate.version>5.6.15.Final</hibernate.version>
Expand Down Expand Up @@ -343,6 +343,7 @@
<exclude>**/target/**</exclude>
<exclude>**/nb-configuration.xml</exclude>
<exclude>**/faces-config.NavData</exclude>
<exclude>**/org.mockito.plugins.MockMaker</exclude>
</excludes>
</configuration>
</plugin>
Expand Down Expand Up @@ -606,6 +607,13 @@
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
</compilerArgs>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -1075,6 +1083,16 @@
<version>2.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${bytebuddy.version}</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${bytebuddy.version}</version>
</dependency>
<dependency>
<!-- used for the 'hashpass' command line tool: -->
<groupId>commons-cli</groupId>
Expand Down Expand Up @@ -1542,6 +1560,7 @@
<exclude>**/target/**</exclude>
<exclude>**/nb-configuration.xml</exclude>
<exclude>**/faces-config.NavData</exclude>
<exclude>**/org.mockito.plugins.MockMaker</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
19 changes: 12 additions & 7 deletions support/cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito-inline.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
Expand All @@ -86,6 +79,18 @@

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
19 changes: 12 additions & 7 deletions support/jakarta-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito-inline.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
Expand All @@ -105,6 +98,18 @@

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down

0 comments on commit f1889f8

Please sign in to comment.