generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (52 loc) · 2.3 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "6.0.8"
kotlin("plugin.spring") version "2.0.21"
kotlin("plugin.jpa") version "2.0.21"
id("se.patrikerdes.use-latest-versions") version "0.2.18"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
// Spring boot dependencies
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.hypersistence:hypersistence-utils-hibernate-63:3.9.0")
// Enable kotlin reflect
implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.21")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:5.1.1")
implementation("org.springframework:spring-jms:6.2.0")
// Database dependencies
runtimeOnly("org.flywaydb:flyway-core")
runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql")
// OpenAPI
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0")
// Test dependencies
testImplementation("org.awaitility:awaitility-kotlin")
testImplementation("com.github.tomakehurst:wiremock-jre8-standalone:3.0.1")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.awaitility:awaitility-kotlin:4.2.2")
testImplementation("io.jsonwebtoken:jjwt:0.12.6")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:4.0.0")
testImplementation("io.swagger.parser.v3:swagger-parser-v2-converter:2.1.23")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.3")
testImplementation("com.h2database:h2")
testImplementation("org.testcontainers:localstack:1.20.3")
}
kotlin {
jvmToolchain(21)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "21"
}
}
}