Skip to content

Commit 1701749

Browse files
committed
upgrade to new gradle
1 parent 702d9c6 commit 1701749

8 files changed

Lines changed: 30 additions & 11 deletions

File tree

build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
44
import java.net.URI
55

66
plugins {
7-
kotlin("jvm") version "2.0.21"
7+
alias(libs.plugins.kotlin.jvm)
88
}
99

1010
buildscript {
@@ -55,12 +55,11 @@ tasks {
5555
}
5656

5757
dependencies {
58-
val http4kVersion: String by project
58+
implementation(platform(libs.http4k.bom))
59+
implementation(libs.http4k.core)
5960

60-
implementation(platform("org.http4k:http4k-bom:$http4kVersion"))
61-
implementation("org.http4k:http4k-core")
62-
63-
testImplementation("org.http4k:http4k-testing-hamkrest")
64-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.1")
65-
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.11.1")
61+
testImplementation(libs.http4k.testing.hamkrest)
62+
testImplementation(libs.junit.jupiter.api)
63+
testImplementation(libs.junit.jupiter.engine)
64+
testRuntimeOnly(libs.junit.platform.launcher)
6665
}

gradle.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

gradle/libs.versions.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[versions]
2+
http4k = "4.48.0.1"
3+
junit = "5.11.1"
4+
kotlin = "2.0.21"
5+
6+
[libraries]
7+
http4k-bom = { module = "org.http4k:http4k-bom", version.ref = "http4k" }
8+
http4k-core = { module = "org.http4k:http4k-core" }
9+
http4k-testing-hamkrest = { module = "org.http4k:http4k-testing-hamkrest" }
10+
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
11+
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" }
12+
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version = "1.11.1" }
13+
14+
[plugins]
15+
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

gradle/wrapper/gradle-wrapper.jar

130 Bytes
Binary file not shown.

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.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = "http4k-lts-examples"

0 commit comments

Comments
 (0)