-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
91 lines (80 loc) · 3.12 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
plugins {
java
`jvm-test-suite`
id("org.springframework.boot") version "3.0.5"
id("io.spring.dependency-management") version "1.1.0"
}
group = "uk.ac.ebi.biosamples"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
implementation("org.springframework.boot:spring-boot-starter-hateoas")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2")
implementation ("org.springframework.data:spring-data-rest-hal-browser:3.3.9.RELEASE")
implementation ("org.springframework.data:spring-data-rest-hal-explorer")
implementation ("org.springframework.boot:spring-boot-starter-security")
implementation ("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation ("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation ("org.springframework.security:spring-security-oauth2-jose:6.1.4")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.7.8")
// implementation("com.opencsv:opencsv:5.7.1")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.14.2")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring30x:4.6.1")
testImplementation("org.testcontainers:testcontainers:1.19.1")
testImplementation("com.github.dasniko:testcontainers-keycloak:3.0.0")
}
tasks.withType<Test> {
useJUnitPlatform()
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter()
}
val integrationTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("org.springframework.boot:spring-boot-starter-test")
implementation("de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring30x:4.6.1")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
implementation("org.springframework.boot:spring-boot-starter-hateoas")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.junit.jupiter:junit-jupiter:5.8.1")
implementation("org.testcontainers:junit-jupiter:1.19.1")
implementation("org.testcontainers:testcontainers:1.19.1")
implementation("com.github.dasniko:testcontainers-keycloak:3.0.0")
}
// sources {
// java {
// setSrcDirs(listOf("src/integrationTest/java"))
// }
// }
targets {
all {
testTask.configure {
shouldRunAfter(test)
}
}
}
}
}
}
tasks.named("check") {
dependsOn(testing.suites.named("integrationTest"))
}