generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (56 loc) · 2.43 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "6.1.2"
id("org.openapi.generator") version "7.10.0"
kotlin("plugin.spring") version "2.0.21"
kotlin("plugin.jpa") version "2.0.21"
}
allOpen {
annotations(
"javax.persistence.Entity",
"javax.persistence.MappedSuperclass",
"javax.persistence.Embeddable",
)
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
// Spring boot dependencies
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.1.1")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:5.2.2")
implementation("org.springframework.boot:spring-boot-starter-validation")
// Database dependencies
runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql:42.7.5")
// OpenAPI
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.4")
implementation("org.openapitools:jackson-databind-nullable:0.2.6")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:2.12.0")
// Test dependencies
testImplementation("io.jsonwebtoken:jjwt-impl:0.12.6")
testImplementation("io.jsonwebtoken:jjwt-jackson:0.12.6")
testImplementation("net.javacrumbs.json-unit:json-unit:4.1.0")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:4.1.0")
testImplementation("net.javacrumbs.json-unit:json-unit-json-path:4.1.0")
testImplementation("org.awaitility:awaitility-kotlin:4.2.2")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.testcontainers:postgresql:1.20.4")
testImplementation("org.wiremock:wiremock-standalone:3.9.2")
testImplementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter-test:1.1.0")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.24") {
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
}
}