project: upgrade from java 11 to java 17
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6374c2a..bf10957 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml
@@ -29,7 +29,7 @@ strategy: matrix: - java_version: [ 11, 17, 21 ] + java_version: [ 17, 21, 25 ] include: - locale: en_US # Use a different locale when running against one of the java versions
diff --git a/pom.xml b/pom.xml index d660569..70f7c8c 100644 --- a/pom.xml +++ b/pom.xml
@@ -35,8 +35,8 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven.compiler.release>11</maven.compiler.release> - <maven.compiler.target>11</maven.compiler.target> + <maven.compiler.release>17</maven.compiler.release> + <maven.compiler.target>17</maven.compiler.target> <maven.compiler.testRelease>${maven.compiler.release}</maven.compiler.testRelease> <nexus.staging.repository>yasson-maven2-staging</nexus.staging.repository> @@ -384,7 +384,7 @@ <execution> <id>default-testCompile</id> <configuration> - <release>11</release> + <release>17</release> </configuration> </execution> <execution> @@ -475,7 +475,7 @@ java.beans;resolution:="optional", * </Import-Package> - <Require-Capability>osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))"</Require-Capability> + <Require-Capability>osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=17))"</Require-Capability> </instructions> </configuration> </execution> @@ -544,7 +544,7 @@ <configuration> <rules> <requireJavaVersion> - <version>[11,)</version> + <version>[17,)</version> </requireJavaVersion> <requireMavenVersion> <version>[3.6.0,)</version>
diff --git a/yasson-jmh/pom.xml b/yasson-jmh/pom.xml index d52f0ca..3a60057 100644 --- a/yasson-jmh/pom.xml +++ b/yasson-jmh/pom.xml
@@ -61,8 +61,8 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>11</source> - <target>11</target> + <source>17</source> + <target>17</target> </configuration> </plugin> <!--run `java -jar yasson-jmh.jar -h` for help -->
diff --git a/yasson-tck/pom.xml b/yasson-tck/pom.xml index 263fff9..43d06c8 100644 --- a/yasson-tck/pom.xml +++ b/yasson-tck/pom.xml
@@ -17,8 +17,8 @@ <version>3.1.0-SNAPSHOT</version> <properties> - <maven.compiler.source>11</maven.compiler.source> - <maven.compiler.target>11</maven.compiler.target> + <maven.compiler.source>17</maven.compiler.source> + <maven.compiler.target>17</maven.compiler.target> <!-- API Versions --> <!-- TODO update to EE 12 final versions -->