This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
110 lines (93 loc) · 3.46 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
plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "5.7.0"
id("org.openapi.generator") version "7.0.1"
kotlin("plugin.spring") version "1.9.10"
kotlin("plugin.jpa") version "1.9.10"
kotlin("plugin.lombok") version "1.9.10"
}
val springdocOpenapiVersion = "2.2.0"
configurations {
testImplementation { exclude(group = "org.junit.vintage") }
}
val integrationTest = task<Test>("integrationTest") {
description = "Integration tests"
group = "verification"
shouldRunAfter("test")
}
tasks.named<Test>("integrationTest") {
useJUnitPlatform()
filter {
includeTestsMatching("*.Int.*")
}
}
tasks.named<Test>("test") {
filter {
excludeTestsMatching("*.Int.*")
}
}
tasks.named("check") {
setDependsOn(
dependsOn.filterNot {
it is TaskProvider<*> && it.name == "detekt"
}
)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "19"
}
}
withType<JavaCompile> {
sourceCompatibility = "19"
}
}
dependencies {
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-validation")
// Spring boot dependencies
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-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("javax.xml.bind:jaxb-api:2.3.1")
implementation("commons-codec:commons-codec:1.16.0")
implementation("org.ehcache:ehcache:3.10.8")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("io.swagger:swagger-annotations:1.6.12")
implementation("org.apache.commons:commons-lang3:3.13.0")
implementation("commons-io:commons-io:2.15.0")
implementation("com.google.guava:guava:32.1.3-jre")
implementation("org.apache.commons:commons-text:1.11.0")
implementation("com.oracle.database.jdbc:ojdbc10:19.21.0.0")
implementation("org.hibernate.orm:hibernate-community-dialects")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springdocOpenapiVersion")
implementation("javax.servlet:javax.servlet-api:3.0.1")
implementation("org.apache.commons:commons-collections4:4.0")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:2.1.1")
// Enable kotlin reflect
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.20")
// Database dependencies
implementation("org.flywaydb:flyway-core")
runtimeOnly("org.postgresql:postgresql:42.4.0")
implementation("io.arrow-kt:arrow-core:1.1.2")
// OpenAPI
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
implementation("com.google.code.gson:gson:2.9.0")
// Test dependencies
testImplementation("org.springframework.security:spring-security-test")
testImplementation("io.jsonwebtoken:jjwt:0.9.1")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:2.35.0")
testImplementation("io.swagger.parser.v3:swagger-parser-v2-converter:2.0.33")
testImplementation("org.mockito:mockito-inline:4.6.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
testImplementation("org.testcontainers:localstack:1.18.1")
testImplementation("com.h2database:h2")
implementation(kotlin("stdlib"))
}
repositories {
mavenCentral()
}
dependencyCheck {
suppressionFiles.add("$rootDir/dependencyCheck/suppression.xml")
}