generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (67 loc) · 2.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
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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "6.0.0"
kotlin("plugin.spring") version "2.0.0"
kotlin("plugin.jpa") version "2.0.0"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
repositories {
mavenCentral()
}
dependencies {
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.0.0")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.apache.commons:commons-text:1.12.0")
implementation("io.swagger:swagger-annotations:1.6.14")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0")
implementation("org.springframework:spring-jms")
implementation("com.google.code.gson:gson:2.11.0")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:4.0.0")
implementation("org.apache.commons:commons-csv:1.11.0")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:1.33.3")
runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql:42.7.3")
testImplementation("org.flywaydb:flyway-core")
testImplementation("io.jsonwebtoken:jjwt-impl:0.12.5")
testImplementation("io.jsonwebtoken:jjwt-jackson:0.12.5")
testImplementation("org.wiremock:wiremock-standalone:3.6.0")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:3.2.7")
testImplementation("org.awaitility:awaitility-kotlin:4.2.1")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.22") {
exclude(group = "io.swagger.core.v3")
}
testImplementation("io.swagger.core.v3:swagger-core-jakarta:2.2.22")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing:1.37.0")
}
allOpen {
annotations(
"javax.persistence.Entity",
"javax.persistence.MappedSuperclass",
"javax.persistence.Embeddable",
)
}
kotlin {
jvmToolchain(21)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
}
test {
useJUnitPlatform {
excludeTags("race-condition-test")
}
}
task<Test>("testTargetAppScope") {
include("race-condition-test")
shouldRunAfter(test)
useJUnitPlatform()
}
build {
dependsOn(compileKotlin)
dependsOn("testTargetAppScope")
}
}