-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (70 loc) · 2.9 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
plugins {
id("ekino.oss.kotlin-library")
id("ekino.oss.maven-central-publishing")
`jvm-test-suite`
}
version = "9.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
val springBootVersion = "3.1.5"
val awsSdkVersion = "2.21.0"
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")) // BOM import
api("org.springframework.boot:spring-boot-autoconfigure")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
compileOnly("org.jetbrains.kotlin:kotlin-reflect")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compileOnly("org.springframework.boot:spring-boot-starter-data-jpa")
compileOnly("org.springframework.boot:spring-boot-starter-data-rest")
compileOnly("org.springframework.security:spring-security-web")
compileOnly("software.amazon.awssdk:s3:$awsSdkVersion")
}
// move it back to its own file in the buildsrc folder when sharing version catalog is possible
testing {
suites {
configureEach {
if (this is JvmTestSuite) {
useJUnitJupiter()
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion"))
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.boot:spring-boot-starter-test")
implementation("com.ekino.oss.jcv:jcv-hamcrest:1.5.0")
implementation("com.willowtreeapps.assertk:assertk-jvm:0.27.0")
}
}
}
val securityTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("org.springframework.security:spring-security-web")
}
}
val dataRestTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("org.springframework.boot:spring-boot-starter-data-rest")
}
}
val txTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
}
}
val awsTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("software.amazon.awssdk:s3:$awsSdkVersion")
}
}
}
}
tasks.named("build") {
testing.suites.forEach(::dependsOn)
}