Skip to content

Commit

Permalink
Switched to JDK 23
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMosigItemis committed Jan 24, 2025
1 parent 83657a7 commit f25fea3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
distribution: 'temurin'
java-package: 'jdk'
java-version: '22'
java-version: '23'
check-latest: true
server-id: 'ossrh'
server-username: MAVEN_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
distribution: 'temurin'
java-package: 'jdk'
java-version: '22'
java-version: '23'
check-latest: true
cache: 'maven'
- name: Build & Test
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Adding some fluff to [Java's Foreign Function and Memory API](https://openjdk.org/jeps/424)

## Prerequisites
This software requires Java 22 and Maven >= 3.3.x. However, it is best to use a current Maven version, i. e. >= 3.9.x.
This software requires Java 23 and Maven >= 3.3.x. However, it is best to use a current Maven version, i. e. >= 3.9.x.

## Build
Usually a `mvn clean install` should be enough.

## IDE Setup
Due to the usage of Java 22 code, the following special setup is required:
Due to the usage of Java 23 code, the following special setup is required:
* Add the following to the startup JVM options of your IDE (e. g. eclipse.ini):

```
Expand Down
33 changes: 19 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
</organization>

<properties>
<java.version>22</java.version>
<maven.compiler.release>22</maven.compiler.release>
<java.version>23</java.version>
<maven.compiler.release>23</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
Expand Down Expand Up @@ -346,6 +346,17 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
Expand Down Expand Up @@ -376,22 +387,16 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--
When specifying
<reuseForks>false</reuseForks>,
the
<!--
When specifying <reuseForks>false</reuseForks>, the
tests run directly in the mvn JVM. This means, the argLine
cannot be
passed to some JVM,
because it is already running. The solution is to use
MAVEN_OPTS="\-\-add-modules .. mvn clean verify".
cannot be passed to some JVM, because it is already running.
The solution is to use MAVEN_OPTS="\-\-add-modules .. mvn clean verify".
-->
<reuseForks>true</reuseForks>
<forkCount>1</forkCount>
<!-- $argLine is 'injected' by JaCoCo and contains
instructions
to setup its agent -->
<argLine>@{argLine} @{custom.jvm.options}</argLine>
<!-- $argLine is 'injected' by JaCoCo and contains instructions to setup its agent -->
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar} @{custom.jvm.options}</argLine>
<parallel>all</parallel>
<threadCount>1</threadCount>
<perCoreThreadCount>true</perCoreThreadCount>
Expand Down

0 comments on commit f25fea3

Please sign in to comment.