Files
codenames/build.gradle.kts
Schramm Dominik 03f5abe106
Some checks failed
Snapshot Docker Image Build / verify-and-package (push) Successful in 3m3s
Snapshot Docker Image Build / build-and-publish-snapshot (push) Failing after 4m27s
set java version 24
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" }
}