Skip to content

Commit 6cfee99

Browse files
committed
Bumped dependencies and fixed warnings
1 parent d30c974 commit 6cfee99

File tree

18 files changed

+30
-56
lines changed

18 files changed

+30
-56
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
FROM --platform=$BUILDPLATFORM gradle:8.1-jdk17 AS builder
13+
FROM --platform=$BUILDPLATFORM gradle:8.3-jdk17 AS builder
1414

1515
RUN mkdir /code
1616
WORKDIR /code

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@ object Versions {
22
const val project = "2.3.3-SNAPSHOT"
33

44
const val java = 17
5-
val kotlin = "1.8.21"
6-
const val dockerCompose = "0.16.12"
5+
const val kotlin = "1.9.10"
6+
const val dockerCompose = "0.17.4"
77

8-
const val radarCommons = "1.0.0"
9-
const val radarSchemas = "0.8.3"
10-
const val jackson = "2.15.0"
11-
const val slf4j = "2.0.7"
8+
const val radarCommons = "1.0.1-SNAPSHOT"
9+
const val radarSchemas = "0.8.4"
10+
const val jackson = "2.15.2"
11+
const val slf4j = "2.0.9"
1212
const val log4j2 = "2.20.0"
13-
const val avro = "1.11.1"
13+
const val avro = "1.11.2"
1414

15-
const val mockitoKotlin = "4.1.0"
15+
const val mockitoKotlin = "5.1.0"
1616
const val hamcrest = "2.2"
1717

18-
const val wrapper = "8.1.1"
18+
const val wrapper = "8.3"
1919

2020
const val managementPortal = "2.0.1-SNAPSHOT"
21-
const val coroutines = "1.7.1"
22-
const val snappy = "1.1.9.1"
21+
const val coroutines = "1.7.3"
22+
const val snappy = "1.1.10.3"
2323
const val jCommander = "1.82"
2424
const val almworks = "1.1.2"
25-
const val minio = "8.5.2"
25+
const val minio = "8.5.5"
2626
const val guava = "31.1-jre"
27-
const val opencsv = "5.7.1"
27+
const val opencsv = "5.8"
2828
const val okhttp = "4.11.0"
29-
const val jedis = "4.4.0"
30-
const val azureStorage = "12.22.0"
31-
const val netty = "4.1.92.Final"
32-
const val snakeYaml = "1.33"
29+
const val jedis = "5.0.0"
30+
const val azureStorage = "12.23.1"
31+
const val netty = "4.1.97.Final"
32+
const val snakeYaml = "2.2"
3333
const val apacheCommonsText = "1.10.0"
34-
const val projectReactorNetty = "1.1.7"
34+
const val projectReactorNetty = "1.1.10"
3535
}

gradle/wrapper/gradle-wrapper.jar

1.61 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
130131
fi
131132
else
132133
JAVACMD=java
133-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134137
135138
Please set the JAVA_HOME variable in your environment to match the
136139
location of your Java installation."
140+
fi
137141
fi
138142

139143
# Increase the maximum file descriptors if we can.

settings.gradle.kts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ pluginManagement {
44
repositories {
55
gradlePluginPortal()
66
mavenCentral()
7-
maven(url = "https://maven.pkg.github.com/radar-base/radar-commons") {
8-
credentials {
9-
username = System.getenv("GITHUB_ACTOR")
10-
?: extra.properties["gpr.user"] as? String
11-
?: extra.properties["public.gpr.user"] as? String
12-
password = System.getenv("GITHUB_TOKEN")
13-
?: extra.properties["gpr.token"] as? String
14-
?: (extra.properties["public.gpr.token"] as? String)?.let {
15-
java.util.Base64.getDecoder().decode(it).decodeToString()
16-
}
17-
}
18-
}
7+
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
198
}
209
}

src/integrationTest/java/org/radarbase/output/RestructureS3IntegrationTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import org.radarbase.output.util.objectBuild
1414
import java.nio.charset.StandardCharsets.UTF_8
1515
import java.nio.file.Paths
1616

17-
@OptIn(ExperimentalCoroutinesApi::class)
1817
class RestructureS3IntegrationTest {
1918
@Test
2019
fun integration() = runTest {

src/integrationTest/java/org/radarbase/output/accounting/OffsetRangeRedisTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.radarbase.output.accounting
22

3-
import kotlinx.coroutines.ExperimentalCoroutinesApi
43
import kotlinx.coroutines.test.runTest
54
import org.junit.jupiter.api.AfterEach
65
import org.junit.jupiter.api.Assertions.*
@@ -14,7 +13,6 @@ import java.nio.file.Path
1413
import java.nio.file.Paths
1514
import java.time.Instant
1615

17-
@OptIn(ExperimentalCoroutinesApi::class)
1816
class OffsetRangeRedisTest {
1917
private lateinit var testFile: Path
2018
private lateinit var redisHolder: RedisHolder

src/integrationTest/java/org/radarbase/output/accounting/RedisRemoteLockManagerTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.radarbase.output.accounting
22

3-
import kotlinx.coroutines.ExperimentalCoroutinesApi
43
import kotlinx.coroutines.test.runTest
54
import org.hamcrest.MatcherAssert.assertThat
65
import org.hamcrest.Matchers.not
@@ -11,7 +10,6 @@ import org.junit.jupiter.api.Test
1110
import org.radarbase.output.util.SuspendedCloseable.Companion.useSuspended
1211
import redis.clients.jedis.JedisPool
1312

14-
@OptIn(ExperimentalCoroutinesApi::class)
1513
internal class RedisRemoteLockManagerTest {
1614
private lateinit var redisHolder: RedisHolder
1715
private lateinit var lockManager1: RemoteLockManager

src/main/java/org/radarbase/output/format/Format.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ interface Format {
2121

2222
val extension: String
2323

24-
open fun matchesFilename(name: String): Boolean {
25-
return name.lowercase().endsWith(extension.lowercase())
26-
}
24+
fun matchesFilename(name: String): Boolean =
25+
name.endsWith(extension, ignoreCase = true)
2726
}

0 commit comments

Comments
 (0)