generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
79 lines (62 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import uk.gov.justice.digital.hmpps.gradle.PortForwardRDSTask
import uk.gov.justice.digital.hmpps.gradle.PortForwardRedisTask
import uk.gov.justice.digital.hmpps.gradle.RevealSecretsTask
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "6.1.2"
kotlin("plugin.jpa") version "2.0.21"
kotlin("plugin.spring") version "2.0.21"
idea
id("org.springdoc.openapi-gradle-plugin") version "1.9.0"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.1.1")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:5.2.2")
implementation("uk.gov.justice.service.hmpps:hmpps-digital-prison-reporting-lib:7.3.15")
implementation("io.opentelemetry:opentelemetry-api:1.45.0")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:2.11.0")
implementation("com.vladmihalcea:hibernate-types-60:2.21.1")
implementation("org.hibernate.orm:hibernate-community-dialects:6.6.4.Final")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.1")
implementation("com.zaxxer:HikariCP:6.2.1")
runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql")
implementation("com.pauldijou:jwt-core_2.11:5.0.0")
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.wiremock:wiremock-standalone:3.10.0")
testImplementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter-test:1.1.1")
testImplementation("org.awaitility:awaitility-kotlin:4.2.2")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.24")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
testImplementation("org.testcontainers:localstack:1.20.4")
testImplementation("org.testcontainers:postgresql:1.20.4")
}
kotlin {
jvmToolchain(21)
}
tasks {
register<PortForwardRDSTask>("portForwardRDS") {
namespacePrefix = "hmpps-non-associations"
}
register<PortForwardRedisTask>("portForwardRedis") {
namespacePrefix = "hmpps-non-associations"
}
register<RevealSecretsTask>("revealSecrets") {
namespacePrefix = "hmpps-non-associations"
}
withType<KotlinCompile> {
compilerOptions.jvmTarget = JvmTarget.JVM_21
}
}
openApi {
customBootRun.args.set(listOf("--spring.profiles.active=dev,localstack"))
}