generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.83 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.run.BootRun
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "7.1.2"
kotlin("plugin.spring") version "2.1.10"
kotlin("plugin.jpa") version "2.1.10"
id("org.openapi.generator") version "7.11.0"
jacoco
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.3.0")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation("com.vladmihalcea:hibernate-types-60:2.21.1")
implementation("org.flywaydb:flyway-core:10.22.0")
runtimeOnly("org.flywaydb:flyway-database-postgresql:10.22.0")
runtimeOnly("org.postgresql:postgresql")
// Test dependencies
testImplementation("com.ninja-squad:springmockk:4.0.2")
testImplementation("io.jsonwebtoken:jjwt-impl:0.12.6")
testImplementation("io.jsonwebtoken:jjwt-jackson:0.12.6")
testImplementation("org.springframework.security:spring-security-test")
// Dev dependencies
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
kotlin {
jvmToolchain(21)
}
tasks {
withType<KotlinCompile> {
compilerOptions.jvmTarget = JvmTarget.JVM_21
}
withType<BootRun> {
jvmArgs = listOf(
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005",
)
}
}