Files
codenames/build.gradle.kts
2026-04-22 16:23:05 +02:00

54 lines
1.3 KiB
Kotlin

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:4.0.5")
}
}
plugins {
java
}
apply(plugin = "org.springframework.boot")
group = "at.dslan"
version = file("VERSION").readText().trim()
java {
toolchain {
languageVersion = JavaLanguageVersion.of(24)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator:4.0.5")
implementation("org.springframework.boot:spring-boot-starter-json:4.0.5")
implementation("org.springframework.boot:spring-boot-starter-validation:4.0.5")
implementation("org.springframework.boot:spring-boot-starter-web:4.0.5")
implementation("org.springframework.boot:spring-boot-starter-websocket:4.0.5")
testImplementation("org.springframework.boot:spring-boot-starter-test:4.0.5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.register<Copy>("stageFatJar") {
group = "build"
description = "Copies the boot jar to a stable location for CI image assembly."
dependsOn("bootJar")
from(layout.buildDirectory.dir("libs")) {
include("*.jar")
}
into(layout.buildDirectory.dir("ci"))
rename { "server.jar" }
}