generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (42 loc) · 1.7 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "7.0.0"
kotlin("plugin.spring") version "2.1.10"
jacoco
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencies {
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.1.1")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:5.2.2")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.4")
implementation("software.amazon.awssdk:athena:2.30.10")
implementation("software.amazon.awssdk:sts:2.30.10")
implementation("org.json:json:20250107")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2")
testImplementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter-test:1.1.1")
testImplementation("org.wiremock:wiremock-standalone:3.11.0")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.25") {
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
}
withType<Test> {
finalizedBy("jacocoTestReport") // report is always generated after tests run
}
named<JacocoReport>("jacocoTestReport") {
dependsOn("test")
reports { html.required.set(true) }
classDirectories.setFrom(fileTree(projectDir) { include("build/classes/kotlin/main/**") })
sourceDirectories.setFrom(files("src/main/kotlin"))
executionData.setFrom(files("build/jacoco/test.exec"))
}
}