generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
40 lines (34 loc) · 1.44 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "7.1.3"
kotlin("plugin.spring") version "2.1.10"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.3.1")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.3")
implementation("org.springframework.boot:spring-boot-starter-mustache")
implementation("com.github.spullara.mustache.java:compiler:0.9.14")
implementation("com.github.jknack:handlebars:4.4.0")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
runtimeOnly("org.flywaydb:flyway-core")
runtimeOnly("com.h2database:h2:2.3.232")
runtimeOnly("org.postgresql:postgresql:42.7.5")
runtimeOnly("org.flywaydb:flyway-database-postgresql")
testImplementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter-test:1.3.1")
testImplementation("org.wiremock:wiremock-standalone:3.12.1")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.25") {
exclude(group = "io.swagger.core.v3")
}
}
kotlin {
jvmToolchain(21)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
}
}