Enable testing for JDK 22 and 23-ea (#852)
* Enable testing for JDK 22 and 23-ea
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Add a Maven profile for JDK 22
JDK 23 is the Early Access release at the moment
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Remove Maven profiles for JDK 18, 19 & 20
These JDKs are no more supported
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Disable testing on JDK 23
ByteBuddy does not support it yet:
```
Caused by: java.lang.IllegalArgumentException: Java 23 (67) is not supported by the current version of Byte Buddy which officially supports Java 22 (66) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
```
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
---------
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1c320fc..82b1e22 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -18,6 +18,7 @@
java:
- '17'
- '21'
+ - '22'
# - '23-ea'
steps:
diff --git a/pom.xml b/pom.xml
index 229fc27..b88e12a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1415,84 +1415,6 @@
</build>
</profile>
<profile>
- <id>java18</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-toolchains-plugin</artifactId>
- <version>${maven-toolchains-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>toolchain</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <toolchains>
- <jdk>
- <version>18</version>
- </jdk>
- </toolchains>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>java19</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-toolchains-plugin</artifactId>
- <version>${maven-toolchains-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>toolchain</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <toolchains>
- <jdk>
- <version>19</version>
- </jdk>
- </toolchains>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>java20</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-toolchains-plugin</artifactId>
- <version>${maven-toolchains-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>toolchain</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <toolchains>
- <jdk>
- <version>20</version>
- </jdk>
- </toolchains>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
<id>java21</id>
<build>
<plugins>
@@ -1519,6 +1441,32 @@
</build>
</profile>
<profile>
+ <id>java22</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <version>${maven-toolchains-plugin.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>toolchain</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <toolchains>
+ <jdk>
+ <version>22</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>on-jdk-11-or-12</id>
<activation>
<jdk>[11,12]</jdk>
@@ -1530,7 +1478,7 @@
<profile>
<id>on-jdk-early-access</id>
<activation>
- <jdk>[22,)</jdk>
+ <jdk>[23,)</jdk>
</activation>
<properties>
<javadoc.jdk.apidocs.link>https://download.java.net/java/early_access/jdk${java.specification.version}/docs/api/</javadoc.jdk.apidocs.link>