Skip to content

Commit 319a1b9

Browse files
authored
Kotlin 2.0 -> 2.2, Gradle 8.13 -> 9.0, and other bumps (#535)
2 parents 310ed9d + cc0d0a2 commit 319a1b9

File tree

16 files changed

+293
-222
lines changed

16 files changed

+293
-222
lines changed

.github/workflows/jvm-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
jre: [11]
18+
jre: [17]
1919
os: [ubuntu-latest, windows-latest]
2020
include:
21-
- jre: 17
21+
- jre: 21
2222
os: ubuntu-latest
2323
runs-on: ${{ matrix.os }}
2424
steps:

jvm/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
## [Unreleased]
1414
### Fixed
1515
- Unsupported test sources (such as `FieldSource`) no longer cause the JUnit5 runner to crash. ([#550](https://github.com/diffplug/selfie/pull/550) fixes [#549](https://github.com/diffplug/selfie/issues/549))
16+
### Changed
17+
- Bump minimum required Kotest from `5.4.0` to `5.6.0` ([#535](https://github.com/diffplug/selfie/pull/535))
18+
- required to fix `java.lang.NoSuchMethodError: 'long kotlin.time.Duration$Companion.milliseconds-UwyO8pc(long)'`
1619

1720
## [2.5.3] - 2025-05-21
1821
### Fixed

jvm/example-junit5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
testImplementation 'io.jooby:jooby-test:3.2.3'
1313
testImplementation "org.junit.jupiter:junit-jupiter:$ver_JUNIT_USE"
1414
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
15-
testImplementation 'io.rest-assured:rest-assured:5.4.0'
15+
testImplementation 'io.rest-assured:rest-assured:5.5.0'
1616
testImplementation 'org.assertj:assertj-core:3.27.3'
1717
testImplementation project(':selfie-runner-junit5')
1818
testImplementation 'org.jsoup:jsoup:1.17.2'

jvm/example-junit5/src/test/java/com/example/LoginFlowTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public class LoginFlowTest {
1717
public void loginFlow(Jooby app) {
1818
expectSelfie(get("/")).toMatchDisk("1. not logged in").facet("md").toBe("Please login");
1919
expectSelfie(given().param("email", "[email protected]").post("/login")).toMatchDisk("2. post login form")
20-
.facet("md").toBe("""
20+
.facet("md").toBe(
21+
"""
2122
Email sent!
2223
2324
Check your email for your login link.""");
@@ -27,15 +28,17 @@ public void loginFlow(Jooby app) {
2728
.facet("md").toBe("Click [here](https://www.example.com/login-confirm/erjchFY=) to login.");
2829

2930
expectSelfie(get("/login-confirm/erjchFY=")).toMatchDisk("4. open login email link")
30-
.facets("", "cookies").toBe("""
31+
.facets("", "cookies").toBe(
32+
"""
3133
REDIRECT 302 Found to /
3234
╔═ [cookies] ═╗
3335
[email protected]|JclThw==;Path=/""");
3436
expectSelfie(given().cookie("login", "[email protected]|JclThw==").get("/")).toMatchDisk("5. should be logged in")
3537
.facet("md").toBe("Welcome back [email protected]");
3638

3739
expectSelfie(given().cookie("login", "[email protected]|badsignature").get("/")).toMatchDisk("6. bad signature should fail")
38-
.facets("md").toBe("""
40+
.facets("md").toBe(
41+
"""
3942
Unauthorized
4043
4144
status code: 401""");

jvm/gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ maven_group=com.diffplug.selfie
44
javadoc_links=
55
org.gradle.configuration-cache=true
66

7-
ver_JUNIT_USE=5.10.3
8-
ver_JUNIT_PIONEER=2.2.0
9-
ver_OKIO=3.9.0
7+
ver_JUNIT_USE=5.13.4
8+
ver_JUNIT_PIONEER=2.3.0
9+
ver_OKIO=3.16.0
1010
ver_KOTLIN_TEST=2.0.0
11-
ver_KOTLIN_SERIALIZATION=1.7.3
12-
# Kotest 5.4.0 is the oldest that we support
13-
ver_KOTEST=5.4.0
11+
ver_KOTLIN_SERIALIZATION=1.9.0
12+
# Kotest 5.6.0 is the oldest that we support
13+
ver_KOTEST=5.6.0
1414

1515
ver_JVM_TARGET=11

jvm/gradle/spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spotless {
99
groovyGradle {
1010
target '*.gradle', 'buildSrc/*.gradle'
1111
greclipse()
12-
indentWithSpaces(2)
12+
leadingTabsToSpaces(2)
1313
}
1414
if (plugins.hasPlugin('org.jetbrains.kotlin.jvm') || plugins.hasPlugin('org.jetbrains.kotlin.multiplatform')) {
1515
kotlin {
122 Bytes
Binary file not shown.

jvm/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

jvm/gradlew

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

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

0 commit comments

Comments
 (0)