-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (53 loc) · 1.64 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@file:Suppress("LocalVariableName")
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("org.springframework.boot")
id("io.spring.dependency-management")
kotlin("plugin.spring")
}
group = "org.reckful-archive"
version = "1.0"
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(20)
compilerOptions {
freeCompilerArgs = listOf(
"-Xjsr305=strict", // https://kotlinlang.org/docs/java-interop.html#jsr-305-support
"-Xcontext-receivers"
)
}
}
tasks.bootJar {
enabled = true
}
springBoot {
mainClass.set("org.reckful.archive.browser.ApplicationKt")
}
dependencies {
// spring
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation("org.jetbrains.kotlin:kotlin-reflect")
// web
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("io.github.wimdeblauwe:htmx-spring-boot-thymeleaf:3.1.1")
// webjars
implementation("org.webjars:bootstrap:5.3.2")
implementation("org.webjars.npm:bootstrap-icons:1.11.1")
implementation("org.webjars.npm:htmx.org:1.9.8")
implementation("org.webjars:jquery:3.7.1")
implementation("org.webjars.npm:bootstrap-select:1.14.0-beta3")
// db
implementation("org.postgresql:postgresql")
implementation("org.flywaydb:flyway-core")
// test
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}