-
Notifications
You must be signed in to change notification settings - Fork 169
/
build.gradle.kts
49 lines (39 loc) · 1.15 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
plugins {
val kotlinVersion = "2.0.0"
id("org.springframework.boot") version "3.3.1"
id("io.spring.dependency-management") version "1.1.5"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
}
group = "hello"
version = "1.0.0-SNAPSHOT"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks.named<BootBuildImage>("bootBuildImage") {
// For multi arch (Apple Silicon) support
builder.set("paketobuildpacks/builder-jammy-buildpackless-tiny")
buildpacks.set(listOf("paketobuildpacks/java"))
}
tasks.withType<Test> {
useJUnitPlatform()
}