This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
76 lines (61 loc) · 3.18 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "4.13.0"
kotlin("plugin.spring") version "1.9.10"
kotlin("plugin.jpa") version "1.9.10"
}
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
dependencyCheck {
suppressionFiles.add("elasticsearch-suppressions.xml")
}
// SDI-260: pinned elasticsearch version to 7.12.1 and spring-data-elasticsearch:4.3.4
// rest-high-level-client:7.15.2 is not compatible with our current version of elasticsearch
// (AWS currently only support elasticsearch to 7.10)
// https://github.com/elastic/elasticsearch/issues/76091#issuecomment-892817267
ext["elasticsearch.version"] = "7.12.1"
val springDataElasticSearch by extra("4.3.4")
// still on spring boot 2
val hmppsSqsVersion by extra("1.3.0")
// Unable to upgrade to 2.1.16 as attempting to use the parser caused a 500 from /v3/api-docs. It seems there's an incorrect dependency on an OAS3.1 type but I couldn't work out which project is wrong - so hopefully this will get sorted by the maintainers in due course.
val swaggerParserVersion by extra("2.1.15")
dependencies {
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.data:spring-data-elasticsearch:$springDataElasticSearch")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springdoc:springdoc-openapi-webmvc-core:1.7.0")
implementation("org.springdoc:springdoc-openapi-ui:1.7.0")
implementation("org.springdoc:springdoc-openapi-kotlin:1.7.0")
implementation("org.springdoc:springdoc-openapi-data-rest:1.7.0")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.apache.commons:commons-lang3:3.13.0")
implementation("com.google.code.gson:gson:2.10.1")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:$hmppsSqsVersion")
implementation("com.amazonaws:aws-java-sdk-elasticsearch:1.12.569")
implementation("org.awaitility:awaitility-kotlin:4.2.0")
runtimeOnly("org.postgresql:postgresql:42.6.0")
runtimeOnly("org.flywaydb:flyway-core")
testImplementation("io.swagger.parser.v3:swagger-parser:$swaggerParserVersion")
testImplementation("com.github.tomakehurst:wiremock-jre8-standalone:3.0.1")
testImplementation("io.jsonwebtoken:jjwt:0.9.1")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:3.2.2")
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin")
}
kotlin {
jvmToolchain(20)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "20"
}
}
}