generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
61 lines (53 loc) · 1.96 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "5.15.5"
kotlin("plugin.spring") version "1.9.20"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux:3.2.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.1")
implementation("io.sentry:sentry-spring-boot-starter-jakarta:6.34.0")
implementation("io.sentry:sentry-logback:6.34.0")
implementation("org.springframework.data:spring-data-commons:3.2.4")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:3.1.1") {
exclude("org.springframework.security", "spring-security-config")
exclude("org.springframework.security", "spring-security-core")
exclude("org.springframework.security", "spring-security-crypto")
exclude("org.springframework.security", "spring-security-web")
}
testImplementation("io.kotest:kotest-assertions-json-jvm:5.8.0")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.8.0")
testImplementation("io.kotest:kotest-assertions-core-jvm:5.8.0")
testImplementation("org.wiremock:wiremock-standalone:3.2.0")
testImplementation("io.kotest.extensions:kotest-extensions-spring:1.1.3")
testImplementation("org.mockito:mockito-core:5.7.0")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
mavenCentral()
}
tasks {
register<Test>("unitTest") {
filter {
excludeTestsMatching("uk.gov.justice.digital.hmpps.hmppsintegrationapi.smoke*")
}
}
register<Test>("smokeTest") {
filter {
includeTestsMatching("uk.gov.justice.digital.hmpps.hmppsintegrationapi.smoke*")
}
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "21"
}
}
}
testlogger {
theme = com.adarshr.gradle.testlogger.theme.ThemeType.MOCHA
}