Skip to content

Commit

Permalink
Updated to Java 21, using virtual threads in executor service.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoffmann committed Jul 10, 2024
1 parent 706815f commit a570375
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion cross-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-annotations</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-cache</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-event</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-exception/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-exception</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-main</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-math/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-math</artifactId>
<name>Cross Math</name>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/apache-commons-nbm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>cross-nbm-cluster</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>apache-commons-nbm</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>Lib Apache Commons</name>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/cross-nbm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>cross-nbm-cluster</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>cross-nbm</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>Lib Cross</name>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/mpaxs-nbm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<artifactId>cross-nbm-cluster</artifactId>
<groupId>io.github.nilshoffmann</groupId>

<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-nbm</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>Lib Mpaxs</name>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/netcdf-nbm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>cross-nbm-cluster</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>netcdf-nbm</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>Lib Netcdf</name>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.nilshoffmann</groupId>
<artifactId>cross</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>cross-nbm-cluster</artifactId>
Expand All @@ -25,8 +25,8 @@
<plugin>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>14.1</version>
<extensions>true</extensions>
<version>4.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
4 changes: 2 additions & 2 deletions cross-nbm-cluster/slf4j-nbm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<artifactId>cross-nbm-cluster</artifactId>
<groupId>io.github.nilshoffmann</groupId>

<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>slf4j-nbm</artifactId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>Lib Slf4j</name>
Expand Down
2 changes: 1 addition & 1 deletion cross-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-test</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion cross-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>cross-tools</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-api</artifactId>
<name>mpaxs-api</name>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-computeHost/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-computeHost</artifactId>
<name>mpaxs-computeHost</name>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-distribution</artifactId>
<name>mpaxs-distribution</name>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-server</artifactId>
<name>mpaxs-server</name>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-spi</artifactId>
<name>mpaxs-spi</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class MpaxsCompletionService<T extends Serializable> implements
public MpaxsCompletionService() {
super();
init();
this.e = Executors.newCachedThreadPool();
this.e = Executors.newVirtualThreadPerTaskExecutor();
this.es = new ExecutorCompletionService<T>(e);
}

Expand Down
2 changes: 1 addition & 1 deletion mpaxs/mpaxs-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>mpaxs</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>
<artifactId>mpaxs-test</artifactId>
<name>mpaxs-test</name>
Expand Down
2 changes: 1 addition & 1 deletion mpaxs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>cross</artifactId>
<groupId>io.github.nilshoffmann</groupId>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
</parent>

<artifactId>mpaxs</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
<org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap>words</org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap>
<netbeans.compile.on.save>all</netbeans.compile.on.save>
<org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.enable-indent>true</org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.enable-indent>
<netbeans.hint.jdkPlatform>JDK_17</netbeans.hint.jdkPlatform>
<netbeans.hint.jdkPlatform>JDK_21.0.3.fx-zulu__SDKMAN_</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>io.github.nilshoffmann</groupId>
<artifactId>cross</artifactId>
<packaging>pom</packaging>
<version>2.0.2</version>
<version>2.0.3-SNAPSHOT</version>
<name>Cross</name>
<description>This is the Cross maven3 project. Cross provides Spring framework
integration and infrastructure for worfklow-based processing of data.</description>
Expand Down Expand Up @@ -327,7 +327,7 @@
<plugin>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>4.8</version>
<version>14.1</version>
<extensions>true</extensions>
</plugin>
<!--plugin execution is currently broken with java 1.7-->
Expand Down Expand Up @@ -1004,8 +1004,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.sourceLevel>17</project.build.sourceLevel>
<project.build.targetLevel>17</project.build.targetLevel>
<project.build.sourceLevel>21</project.build.sourceLevel>
<project.build.targetLevel>21</project.build.targetLevel>
<netbeans.hint.license>cross</netbeans.hint.license>
<version.spring>6.0.10</version.spring>
<version.netcdf>5.5.3</version.netcdf>
Expand Down

0 comments on commit a570375

Please sign in to comment.