Skip to content

Commit

Permalink
upgrade to java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
elimelt committed Jan 12, 2025
1 parent 51018e2 commit 062f88b
Showing 1 changed file with 45 additions and 36 deletions.
81 changes: 45 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -39,53 +40,53 @@
<properties>
<revision>${project.version}</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<junit.version>5.9.2</junit.version>
<mockito.version>5.3.1</mockito.version>
</properties>
</properties>

<dependencies>
<dependencies>
<!-- JUnit Jupiter API for writing tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<!-- JUnit Jupiter Engine to run tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<!-- JUnit Jupiter Params for parameterized tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<!-- Mockito Core for mocking in tests -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>

<!-- Mockito JUnit Jupiter Integration -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencies>

<build>
<plugins>
Expand All @@ -100,6 +101,14 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>21</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
<source>21</source>
<target>21</target>
</configuration>
</plugin>
<!-- <plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -109,14 +118,14 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<!-- Configure parallel test execution if desired -->
<parallel>classes</parallel>
<threadCount>4</threadCount>
<includes>
<include>**/*Test.java</include>
</includes>
<parallel>classes</parallel>
<threadCount>4</threadCount>
<argLine>--enable-preview</argLine>
</configuration>
</plugin>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
Expand Down Expand Up @@ -157,9 +166,9 @@
<!-- For publishing to Maven Central -->
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub elimelt Apache Maven Packages</name>
<url>https://maven.pkg.github.com/elimelt/pmqueue</url>
<id>github</id>
<name>GitHub elimelt Apache Maven Packages</name>
<url>https://maven.pkg.github.com/elimelt/pmqueue</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 062f88b

Please sign in to comment.