mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2026-10-13 18:02:01 -05:00
start supporting Java 25 (#2209)
* start supporting Java 25 * update GHA Java to 25 * update AppImage deps and dependencies
This commit is contained in:
1 parent
9766b4c6cf
commit
d5a99fbc85
15 files changed
+51
-36
No files matched your search
@@ -23,11 +23,14 @@ jobs:
|
||||
architecture: x64
|
||||
distribution: 'oracle'
|
||||
java-package: jdk
|
||||
java-version: '24'
|
||||
java-version: '25'
|
||||
|
||||
- name: install fuse2
|
||||
run: sudo apt install libfuse2
|
||||
|
||||
- name: install desktop-file-utils
|
||||
run: sudo apt install desktop-file-utils
|
||||
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'oracle'
|
||||
java-version: '24'
|
||||
java-version: '25'
|
||||
java-package: jdk
|
||||
architecture: x64
|
||||
|
||||
@@ -49,6 +49,9 @@ jobs:
|
||||
- name: install fuse2
|
||||
run: sudo apt install libfuse2
|
||||
|
||||
- name: install desktop-file-utils
|
||||
run: sudo apt install desktop-file-utils
|
||||
|
||||
- name: read versions
|
||||
id: versions
|
||||
run: |
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'oracle'
|
||||
java-version: '24'
|
||||
java-version: '25'
|
||||
java-package: jdk
|
||||
architecture: x64
|
||||
|
||||
@@ -52,6 +52,9 @@ jobs:
|
||||
- name: install fuse2
|
||||
run: sudo apt install libfuse2
|
||||
|
||||
- name: install desktop-file-utils
|
||||
run: sudo apt install desktop-file-utils
|
||||
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
||||
+10
-10
@@ -26,7 +26,7 @@
|
||||
|
||||
<properties>
|
||||
|
||||
<revision>5.23.0-SNAPSHOT</revision>
|
||||
<revision>5.25.0-SNAPSHOT</revision>
|
||||
<!-- Set this level to override the logging level for tests during build -->
|
||||
<project.testlevel>INFO</project.testlevel>
|
||||
<!-- Set this level to override the logging level for tests logging configuration during build -->
|
||||
@@ -35,9 +35,9 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<javadoc.name>nosqlbench ${revision}</javadoc.name>
|
||||
|
||||
<maven.compiler.source>24</maven.compiler.source>
|
||||
<maven.compiler.target>24</maven.compiler.target>
|
||||
<maven.compiler.release>24</maven.compiler.release>
|
||||
<maven.compiler.source>25</maven.compiler.source>
|
||||
<maven.compiler.target>25</maven.compiler.target>
|
||||
<maven.compiler.release>25</maven.compiler.release>
|
||||
|
||||
<PROG>nb5</PROG>
|
||||
<maven.plugin.validation>VERBOSE</maven.plugin.validation>
|
||||
@@ -522,7 +522,7 @@
|
||||
<target>${maven.compiler.target}</target>
|
||||
<release>${maven.compiler.release}</release>
|
||||
<compilerArgs>
|
||||
<arg>--enable-preview</arg>
|
||||
<!-- <arg>--enable-preview</arg>-->
|
||||
<!-- <compilerArg>-Xdoclint:all</compilerArg>-->
|
||||
<!-- <compilerArg>-Xlint:all</compilerArg>-->
|
||||
</compilerArgs>
|
||||
@@ -535,7 +535,7 @@
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- <argLine>-ea @{argLine}</argLine> -->
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<!-- <argLine>--enable-preview @{argLine}</argLine>-->
|
||||
<systemPropertyVariables>
|
||||
<Log4jContextSelector>
|
||||
org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
|
||||
@@ -623,7 +623,7 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<!-- <argLine>--enable-preview @{argLine}</argLine>-->
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>false</reuseForks>
|
||||
<includes>
|
||||
@@ -708,7 +708,7 @@
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireJavaVersion>
|
||||
<version>[24,)</version>
|
||||
<version>[25,)</version>
|
||||
</requireJavaVersion>
|
||||
<requireProfileIdsExist/>
|
||||
</rules>
|
||||
@@ -916,8 +916,8 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<additionalJOptions>--enable-preview</additionalJOptions>
|
||||
<release>24</release>
|
||||
<!-- <additionalJOptions>--enable-preview</additionalJOptions>-->
|
||||
<release>25</release>
|
||||
<doctitle>${javadoc.name}</doctitle>
|
||||
<header>${javadoc.name}</header>
|
||||
<windowtitle>${javadoc.name}</windowtitle>
|
||||
|
||||
@@ -51,11 +51,11 @@
|
||||
<artifactId>astra-db-java</artifactId>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<!-- Override Lombok version for Java 24 compatibility -->
|
||||
<!-- Override Lombok version for Java 25 compatibility -->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.38</version>
|
||||
<version>1.18.42</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -40,4 +40,16 @@
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<proc>none</proc>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -142,7 +142,6 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<groups>perf</groups>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<additionalClasspathElements>
|
||||
<additionalClasspathElement>${project.basedir}/target/virtdata-userlibs-${project.version}.jar
|
||||
</additionalClasspathElement>
|
||||
|
||||
@@ -94,7 +94,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>false</reuseForks>
|
||||
<includes>
|
||||
|
||||
@@ -22,8 +22,8 @@ set -x
|
||||
APPDIR=target/NB.AppDir
|
||||
JAR_NAME="nb5.jar"
|
||||
BIN_NAME="nb5"
|
||||
JAVA_VERSION="23"
|
||||
UNPACKED_NAME="jdk-23.0.1"
|
||||
JAVA_VERSION="25"
|
||||
UNPACKED_NAME="jdk-25"
|
||||
|
||||
|
||||
mkdir -p ${APPDIR}
|
||||
@@ -40,20 +40,20 @@ cp target/${JAR_NAME} "${APPDIR}/usr/bin/${JAR_NAME}"
|
||||
|
||||
mkdir -p "${APPDIR}/usr/bin/jre"
|
||||
jdkname="jdk${JAVA_VERSION}"
|
||||
if [ "${jdkname}" == "jdk23" ]
|
||||
if [ "${jdkname}" == "jdk25" ]
|
||||
then
|
||||
if [ ! -d "cache/${jdkname}" ] ; then
|
||||
printf "getting ${jdkname} once into cache/${jdkname}\n";
|
||||
filename='openjdk-23.0.1_linux-x64_bin.tar.gz'
|
||||
filename='openjdk-25_linux-x64_bin.tar.gz'
|
||||
mkdir -p cache
|
||||
(cd cache && (
|
||||
curl -O https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL/${filename}
|
||||
curl -O https://download.java.net/java/GA/jdk25/bd75d5f9689641da8e1daabeccb5528b/36/GPL/${filename}
|
||||
tar -xf ${filename}
|
||||
mv ${UNPACKED_NAME} jdk23
|
||||
mv ${UNPACKED_NAME} ${jdkname}
|
||||
rm ${filename}
|
||||
))
|
||||
fi
|
||||
rsync -av cache/jdk23/ "${APPDIR}/usr/bin/jre/"
|
||||
rsync -av cache/${jdkname}/ "${APPDIR}/usr/bin/jre/"
|
||||
else
|
||||
printf "Unknown java version indicated in $0"
|
||||
exit 2
|
||||
@@ -72,7 +72,7 @@ printf "getting appimage tool and building image...\n";
|
||||
( cd target && (
|
||||
if [ ! -x "appimagetool-x86_64.AppImage" ]
|
||||
then
|
||||
wget -c https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
||||
curl -L -O https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage
|
||||
chmod +x appimagetool-x86_64.AppImage
|
||||
fi
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<argLine>--enable-preview @{argLine}</argLine>
|
||||
<parallel>methods</parallel>
|
||||
<!-- <additionalClasspathElements>-->
|
||||
<!-- <additionalClasspathElement>${project.basedir}/target/virtdata-userlibs-${project.version}.jar-->
|
||||
|
||||
@@ -22,32 +22,30 @@ set -x
|
||||
APPDIR=target/NB.AppDir
|
||||
JAR_NAME="nbr.jar"
|
||||
BIN_NAME="nbr"
|
||||
JAVA_VERSION="23"
|
||||
UNPACKED_NAME="jdk-23.0.1"
|
||||
|
||||
JAVA_VERSION="25"
|
||||
UNPACKED_NAME="jdk-25"
|
||||
|
||||
mkdir -p ${APPDIR}
|
||||
|
||||
|
||||
if [ ! -f target/${JAR_NAME} ]
|
||||
then
|
||||
printf "target/${JAR_NAME} does not exist"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
rsync -av appimage/skel/ "${APPDIR}/"
|
||||
rsync -av nb-appimage/skel/ "${APPDIR}/"
|
||||
cp target/${JAR_NAME} "${APPDIR}/usr/bin/${JAR_NAME}"
|
||||
|
||||
mkdir -p "${APPDIR}/usr/bin/jre"
|
||||
jdkname="jdk${JAVA_VERSION}"
|
||||
if [ "${jdkname}" == "jdk23" ]
|
||||
if [ "${jdkname}" == "jdk25" ]
|
||||
then
|
||||
if [ ! -d "cache/${jdkname}" ] ; then
|
||||
printf "getting ${jdkname} once into cache/${jdkname}\n";
|
||||
filename='openjdk-23.0.1_linux-x64_bin.tar.gz'
|
||||
filename='openjdk-25_linux-x64_bin.tar.gz'
|
||||
mkdir -p cache
|
||||
(cd cache && (
|
||||
curl -O https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL/${filename}
|
||||
curl -O https://download.java.net/java/GA/jdk25/bd75d5f9689641da8e1daabeccb5528b/36/GPL/${filename}
|
||||
tar -xf ${filename}
|
||||
mv ${UNPACKED_NAME} ${jdkname}
|
||||
rm ${filename}
|
||||
@@ -72,7 +70,7 @@ printf "getting appimage tool and building image...\n";
|
||||
( cd target && (
|
||||
if [ ! -x "appimagetool-x86_64.AppImage" ]
|
||||
then
|
||||
wget -c https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
||||
curl -L -O https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage
|
||||
chmod +x appimagetool-x86_64.AppImage
|
||||
fi
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user