Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=21.0.8-tem
java=25-tem

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ plugins {

apply plugin: 'de.undercouch.download'

ext.javaLanguageVersion = 21
ext.javaLanguageVersion = 25
// Adoptium also covers Temurin
ext.javaVendor = JvmVendorSpec.ADOPTIUM

Expand Down
2 changes: 1 addition & 1 deletion container_build/docker_java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# It also contains plantuml for plant uml image generation
# Using 'openjdk' on Alpine is not fully supported so using Eclipse Temurin JDK to ensure we have a known jdk version
# See https://github.com/docker-library/docs/blob/master/openjdk/README.md#openjdkversion-alpine
FROM eclipse-temurin:21.0.7_6-jdk-alpine
FROM eclipse-temurin:25_36-jdk-alpine-3.22

# Work from the shared git repo dir
WORKDIR /builder/shared
Expand Down
2 changes: 1 addition & 1 deletion gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#This file is generated by updateDaemonJvm
toolchainVersion=21
toolchainVersion=25
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ commons-io = { module = "commons-io:commons-io", version.ref = "commons-io" }
commons-lang = { module = "org.apache.commons:commons-lang3" } # version controlled by dropwizard-dependencies
commons-pool2 = { module = "org.apache.commons:commons-pool2", version = "2.12.1" }
commons-text = { module = "org.apache.commons:commons-text" } # version controlled by dropwizard-dependencies
classgraph = { module = "io.github.classgraph:classgraph", version = "4.8.179" }
classgraph = { module = "io.github.classgraph:classgraph", version = "4.8.181" }
data-faker = { module = "net.datafaker:datafaker", version = "2.4.2" }
dropwizard-assets = { module = "io.dropwizard:dropwizard-assets" } # version controlled by dropwizard-dependencies
dropwizard-auth = { module = "io.dropwizard:dropwizard-auth" } # version controlled by dropwizard-dependencies
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
9 changes: 3 additions & 6 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
Expand Down Expand Up @@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

JAVACMD=$( cygpath --unix "$JAVACMD" )

Expand Down Expand Up @@ -205,15 +203,14 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"

# Stop when "xargs" is not available.
Expand Down
3 changes: 1 addition & 2 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
2 changes: 1 addition & 1 deletion stroom-app/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# jstat/jmap/jcmd/etc.
# Using 'openjdk' on Alpine is not fully supported so using Eclipse Temurin JDK to ensure we have a known jdk version
# See https://github.com/docker-library/docs/blob/master/openjdk/README.md#openjdkversion-alpine
FROM eclipse-temurin:21.0.8_9-jdk-alpine as stroom-base-stage
FROM eclipse-temurin:25_36-jdk-alpine-3.22 as stroom-base-stage

# bash and jq are required for Kubernetes lifecycle scripts, which interact with the API
# curl is required for the docker healthcheck
Expand Down
4 changes: 4 additions & 0 deletions stroom-aws/stroom-aws-s3-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ dependencies {
testImplementation libs.bundles.common.test.implementation
testRuntimeOnly libs.bundles.common.test.runtime
}

tasks.withType(AbstractTestTask).configureEach {
failOnNoDiscoveredTests = false
}
1 change: 0 additions & 1 deletion stroom-bytebuffer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ext.moduleName = 'stroom.bytebuffer'

dependencies {
implementation project(':stroom-hadoop')
implementation project(':stroom-util')
implementation project(':stroom-util-shared')
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,30 +200,6 @@ public static String byteBufferInfo(final ByteBuffer byteBuffer) {
StandardCharsets.UTF_8.decode(byteBuffer.duplicate()));
}

// public static String byteBufferToAllForms(final ByteBuffer byteBuffer) {
// if (byteBuffer == null) {
// return "null";
// }
// return ByteArrayUtils.byteArrayToAllForms(toBytes(byteBuffer));
// }
//
// public static int compare(final ByteBuffer left, final ByteBuffer right) {
// int cmpResult = stroom.bytebuffer.hbase.ByteBufferUtils.compareTo(
// left, left.position(), left.remaining(),
// right, right.position(), right.remaining());
//
// LOGGER.trace(() -> LogUtil.message("compare({}, {}) returned {}",
// ByteBufferUtils.byteBufferInfo(left),
// ByteBufferUtils.byteBufferInfo(right),
// cmpResult));
// return cmpResult;
//
// }

public static int compareTo(final ByteBuffer buf1, final int o1, final int l1, final ByteBuffer buf2, final int o2, final int l2) {
return stroom.bytebuffer.hbase.ByteBufferUtils.compareTo(buf1, o1, l1, buf2, o2, l2);
}

/**
* Compare two {@link ByteBuffer} objects as if they are longs
*
Expand Down Expand Up @@ -477,4 +453,31 @@ public static void padMax(final ByteBuffer byteBuffer, final int offset, final i
byteBuffer.put(i, MAX_BYTE_UNSIGNED);
}
}

/**
* Check for byte buffer equality over portions of two buffers. This is generally quicker than slicing as no object
* creation is required.
*
* @param a Byte buffer 1.
* @param aOff Byte buffer 1 offset.
* @param b Byte buffer 2.
* @param bOff Byte buffer 2 offset.
* @param length Length to compare.
* @return True if byte buffer portions are equal.
*/
public static boolean equals(final ByteBuffer a,
final int aOff,
final ByteBuffer b,
final int bOff,
final int length) {
if (length > 7) {
return a.slice(aOff, length).equals(b.slice(bOff, length));
}
for (int i = 0; i < length; i++) {
if (a.get(aOff + i) != b.get(bOff + i)) {
return false;
}
}
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ public void write(final byte[] b, final int off, final int len) throws IOExcepti
}
}

public void writeLong(final long l) throws IOException {
checkWriteableState();
checkSizeAndGrow(Long.BYTES);
getCurrentPooledBuffer().getByteBuffer().putLong(l);
}

/**
* Writes byteBuffer into the outputStream. Respects the position/limit of byteBuffer.
* After reading, byteBuffer is rewound to return it to its passed state.
Expand Down
Loading