diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2023-07-05 18:30:13 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2023-07-05 18:30:13 +0200 |
commit | 3c1ef68ff3a278cfb0c8e88ef4f09c58548935a8 (patch) | |
tree | 91c5b2028d2936176bc055928a6e2df1d2bde4ef | |
parent | Upgrade Docker Build Push action to v4 (diff) | |
download | seven-wonders-3c1ef68ff3a278cfb0c8e88ef4f09c58548935a8.tar.gz seven-wonders-3c1ef68ff3a278cfb0c8e88ef4f09c58548935a8.tar.bz2 seven-wonders-3c1ef68ff3a278cfb0c8e88ef4f09c58548935a8.zip |
Use Spring boot BOM instead of dependency management plugin
-rw-r--r-- | gradle/libs.versions.toml | 6 | ||||
-rw-r--r-- | sw-server/build.gradle.kts | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a46b8eb0..679a42ce 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,6 +10,7 @@ logback-classic = "1.4.8" loki-logback-appender = "1.4.1" micrometer-registry-prometheus = "1.11.1" slf4j = "2.0.7" +spring-boot = "3.1.1" # See https://github.com/JetBrains/kotlin-wrappers kotlin-wrappers = "1.0.0-pre.488" @@ -33,6 +34,7 @@ logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "lo loki-logback-appender = { module = "com.github.loki4j:loki-logback-appender", version.ref = "loki-logback-appender" } micrometer-registry-prometheus = { module = "io.micrometer:micrometer-registry-prometheus", version.ref = "micrometer-registry-prometheus" } slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" } +spring-boot-bom = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "spring-boot" } kotlin-wrappers-bom = { module = "org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom", version.ref = "kotlin-wrappers" } kotlin-wrappers-emotion = { module = "org.jetbrains.kotlin-wrappers:kotlin-emotion" } # typed CSS styles @@ -44,3 +46,7 @@ kotlin-wrappers-styled-next = { module = "org.jetbrains.kotlin-wrappers:kotlin-s kotlin-wrappers-blueprintjs-core = { module = "org.hildan.blueprintjs:kotlin-blueprintjs-core", version.ref = "kotlin-blueprintjs-core" } kotlin-wrappers-blueprintjs-icons = { module = "org.hildan.blueprintjs:kotlin-blueprintjs-icons", version.ref = "kotlin-blueprintjs-icons" } + +[plugins] + +spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" } diff --git a/sw-server/build.gradle.kts b/sw-server/build.gradle.kts index ef860c79..1be244f2 100644 --- a/sw-server/build.gradle.kts +++ b/sw-server/build.gradle.kts @@ -2,11 +2,9 @@ plugins { kotlin("jvm") kotlin("plugin.spring") kotlin("plugin.serialization") - id("org.springframework.boot") version "3.1.1" + alias(libs.plugins.spring.boot) } -apply(plugin = "io.spring.dependency-management") - dependencies { implementation(projects.swCommonModel) implementation(projects.swEngine) @@ -17,6 +15,7 @@ dependencies { implementation(libs.kotlinx.coroutines.reactor) // for Spring implementation(libs.kotlinx.serialization.json) + implementation(platform(libs.spring.boot.bom)) implementation("org.springframework.boot:spring-boot-starter-websocket") implementation("org.springframework.boot:spring-boot-starter-security") // required by spring security when using websockets |