Skip to content

Commit 165a5c9

Browse files
mgeissennb-otto
andcommitted
update dependencies
Co-authored-by: Nico Barton <[email protected]> Co-authored-by: Matthias Geißendörfer <[email protected]>
1 parent c521182 commit 165a5c9

File tree

5 files changed

+40
-52
lines changed

5 files changed

+40
-52
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Next Snapshot
4+
* dependency updates:
5+
* Upgrade to java 21
6+
* Upgrade to spring 3.4.x
7+
* Upgrade to kotlin 2.0.x
8+
39
## 0.5.1
410
* _core_:
511
* Fix: Execute status detail indicators in a IO Dispatcher because they can be blocking.

aws-paramstore/src/main/kotlin/de/otto/babbage/aws/paramstore/ParamStorePropertySourcePostProcessor.kt

+3-4
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,13 @@ class ParamStorePropertySourcePostProcessor(
6565

6666
override fun setEnvironment(environment: Environment) {
6767
val pathProperty = "babbage.aws.paramstore.path"
68-
val path = Objects.requireNonNull(
69-
environment.getProperty(pathProperty),
68+
val path = requireNotNull(environment.getProperty(pathProperty)) {
7069
"Property '$pathProperty' must not be null"
71-
)
70+
}
7271
properties = ParamStoreProperties()
7372
properties.isAddWithLowestPrecedence =
7473
environment.getProperty("babbage.aws.paramstore.addWithLowestPrecedence", "false").toBooleanStrict()
75-
properties.path = path!!
74+
properties.path = path
7675
}
7776

7877
companion object {

buildSrc/build.gradle.kts

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ repositories {
77
}
88

99
dependencies {
10-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22") // kotlin("jvm")
11-
implementation("org.jetbrains.kotlin:kotlin-allopen:1.9.22") // kotlin("plugin.spring")
12-
implementation("org.springframework.boot:spring-boot-gradle-plugin:3.2.2") // id("org.springframework.boot")
13-
implementation("io.spring.gradle:dependency-management-plugin:1.1.4") // id("io.spring.dependency-management")
10+
val kotlinVersion = "2.0.10"
11+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") // kotlin("jvm")
12+
implementation("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion") // kotlin("plugin.spring")
13+
implementation("org.springframework.boot:spring-boot-gradle-plugin:3.4.1") // id("org.springframework.boot")
14+
implementation("io.spring.gradle:dependency-management-plugin:1.1.7") // id("io.spring.dependency-management")
1415
implementation("com.adarshr:gradle-test-logger-plugin:4.0.0") // id("com.adarshr.test-logger")
15-
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.5") // id("io.gitlab.arturbosch.detekt")
16+
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7") // id("io.gitlab.arturbosch.detekt")
1617
}

buildSrc/src/main/kotlin/babbage.conventions.gradle.kts

+24-42
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
44
id("maven-publish")
@@ -12,8 +12,8 @@ plugins {
1212
}
1313

1414
group = "de.otto.babbage"
15-
version = "0.5.1"
16-
java.sourceCompatibility = JavaVersion.VERSION_17
15+
version = "0.5.2-SNAPSHOT"
16+
java.sourceCompatibility = JavaVersion.VERSION_21
1717

1818
repositories {
1919
mavenCentral()
@@ -29,39 +29,42 @@ dependencies {
2929

3030
implementation("org.jetbrains.kotlin:kotlin-reflect")
3131
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
32-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.6.4")
33-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
34-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
32+
val coroutinesVersion = "1.6.4"
33+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$coroutinesVersion")
34+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
35+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutinesVersion")
3536

3637
testImplementation("org.springframework.boot:spring-boot-starter-test")
37-
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
38-
testImplementation("io.kotest:kotest-runner-junit5:5.5.5")
39-
testImplementation("io.kotest:kotest-assertions-core:5.5.5")
38+
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
39+
val koTestVersion = "5.9.1"
40+
testImplementation("io.kotest:kotest-runner-junit5:$koTestVersion")
41+
testImplementation("io.kotest:kotest-assertions-core:$koTestVersion")
4042

41-
testImplementation("io.mockk:mockk:1.13.4")
42-
testImplementation("io.mockk:mockk-jvm:1.13.4")
43+
val mockkVersion = "1.13.16"
44+
testImplementation("io.mockk:mockk:$mockkVersion")
45+
testImplementation("io.mockk:mockk-jvm:$mockkVersion")
4346

4447
/**
4548
* Specify versions here for dependencies that are not used by every module.
4649
* The dependency have to be configured in the module build.gradle.kts without a version.
4750
*/
4851
constraints {
49-
api("software.amazon.awssdk:auth:2.20.7")
50-
api("software.amazon.awssdk:s3:2.20.7")
51-
api("software.amazon.awssdk:ssm:2.20.7")
52+
val awsSdkVersion = "2.30.2"
53+
api("software.amazon.awssdk:auth:$awsSdkVersion")
54+
api("software.amazon.awssdk:s3:$awsSdkVersion")
55+
api("software.amazon.awssdk:ssm:$awsSdkVersion")
5256

5357
// test dependencies
54-
api("com.ninja-squad:springmockk:4.0.0")
55-
api("org.jsoup:jsoup:1.15.3")
56-
api("io.kotest.extensions:kotest-assertions-jsoup:1.0.0")
58+
api("com.ninja-squad:springmockk:4.0.2")
59+
api("org.jsoup:jsoup:1.18.3")
5760
}
5861

5962
}
6063

61-
tasks.withType<KotlinCompile> {
62-
kotlinOptions {
63-
jvmTarget = "17"
64-
allWarningsAsErrors = true
64+
kotlin {
65+
compilerOptions {
66+
jvmTarget.set(JvmTarget.JVM_21)
67+
allWarningsAsErrors.set(true)
6568
}
6669
}
6770

@@ -114,24 +117,3 @@ publishing {
114117
}
115118
}
116119

117-
/**
118-
* The generated MavenPom has two `dependencyManagement` sections, which is invalid. There is a workaround to fix this
119-
* issue:
120-
* https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/257#issuecomment-895790557
121-
*/
122-
tasks.withType<GenerateMavenPom>().all {
123-
doLast {
124-
val file = File("$buildDir/publications/${base.archivesName.get()}/pom-default.xml")
125-
var text = file.readText()
126-
val regex =
127-
"(?s)(<dependencyManagement>.+?<dependencies>)(.+?)(</dependencies>.+?</dependencyManagement>)".toRegex()
128-
val matcher = regex.find(text)
129-
if (matcher != null) {
130-
text = regex.replaceFirst(text, "")
131-
val firstDeps = matcher.groups[2]!!.value
132-
text = regex.replaceFirst(text, "$1$2$firstDeps$3")
133-
}
134-
file.writeText(text)
135-
}
136-
}
137-
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)