-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
129 lines (110 loc) · 4.93 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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"
kotlin("plugin.lombok") version "2.0.21"
}
configurations {
implementation {
exclude(module = "commons-logging")
exclude(module = "log4j")
exclude(module = "c3p0")
exclude(module = "tomcat-jdbc")
}
}
dependencies {
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.projectlombok:lombok:1.18.34")
testAnnotationProcessor("org.projectlombok:lombok:1.18.34")
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.0.8")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation("commons-codec:commons-codec:1.17.1")
implementation("com.github.jsqlparser:jsqlparser:5.0")
implementation("org.ehcache:ehcache:3.10.8")
runtimeOnly("com.zaxxer:HikariCP")
implementation("io.swagger:swagger-annotations:1.6.14")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0")
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("commons-io:commons-io:2.17.0")
implementation("com.google.guava:guava:33.3.1-jre")
implementation("org.apache.commons:commons-text:1.12.0")
implementation("com.oracle.database.jdbc:ojdbc10:19.24.0.0")
implementation("org.hibernate.orm:hibernate-community-dialects")
compileOnly("org.projectlombok:lombok:1.18.34")
// we run on oracle in all environments, but allow instance to be started using hsqldb too
runtimeOnly("org.hsqldb:hsqldb:2.7.3")
runtimeOnly("org.flywaydb:flyway-database-hsqldb")
testImplementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter-test:1.0.8")
testImplementation("org.springframework.boot:spring-boot-test-autoconfigure")
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("io.rest-assured:rest-assured:5.5.0")
testImplementation("io.rest-assured:json-schema-validator:5.5.0")
testImplementation("io.rest-assured:spring-mock-mvc:5.5.0")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("com.google.code.gson:gson:2.11.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.powermock:powermock-api-mockito2:2.0.9")
testImplementation("org.powermock:powermock-module-junit4:2.0.9")
testImplementation("com.tngtech.java:junit-dataprovider:1.13.1")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:3.4.1")
testImplementation("net.serenity-bdd:serenity-core:4.2.6")
testImplementation("net.serenity-bdd:serenity-junit:4.2.6")
testImplementation("net.serenity-bdd:serenity-spring:4.2.6")
testImplementation("net.serenity-bdd:serenity-cucumber:4.2.6")
testImplementation("com.paulhammant:ngwebdriver:1.2")
testImplementation("org.wiremock:wiremock:3.9.2")
testImplementation("io.swagger.parser.v3:swagger-parser:2.1.23") {
exclude(group = "io.swagger.core.v3")
}
testImplementation("io.swagger.core.v3:swagger-core-jakarta:2.2.25")
testImplementation("commons-beanutils:commons-beanutils:1.9.4")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing:1.43.0")
testCompileOnly("org.projectlombok:lombok:1.18.34")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
compilerOptions.freeCompilerArgs = listOf("-Xjvm-default=all")
}
// Exclude Serenity BDD integration and IntTest tests from "test" task so they can be controlled independently
test {
useJUnitPlatform {
exclude("**/executablespecification/*")
exclude("**/*IntTest*")
}
minHeapSize = "128m"
maxHeapSize = "2048m"
}
register<Test>("testIntegration") {
useJUnitPlatform {
include("**/*IntTest*")
}
minHeapSize = "128m"
maxHeapSize = "2048m"
}
register<Test>("testWithSchemaNomis") {
environment(mapOf("api.db.target" to "nomis", "cucumber.filter.tags" to "not(@wip or @broken)"))
useJUnitPlatform {
include("**/executablespecification/*")
}
minHeapSize = "128m"
maxHeapSize = "2048m"
}
register<Test>("testWithSchemaNomisOracle") {
environment(mapOf("api.db.target" to "nomis", "api.db.dialect" to "oracle", "cucumber.filter.tags" to "not(@wip or @broken)"))
useJUnitPlatform {
include("**/executablespecification/*")
}
}
}
allOpen {
annotation("uk.gov.justice.hmpps.prison.repository.jpa.helper.EntityOpen")
}