-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
64 lines (51 loc) · 2.04 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "financial"
plugins {
kotlin("jvm")
id("com.adarshr.test-logger")
}
allprojects {
repositories {
mavenCentral()
maven(url = "https://packages.confluent.io/maven")
}
}
subprojects {
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "org.jetbrains.kotlin.jvm")
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:${property("kotlinVersion")}")
implementation("org.jetbrains.kotlin:kotlin-reflect:${property("kotlinVersion")}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${property("coroutinesVersion")}")
implementation("org.jdbi:jdbi3-core:${property("jdbiVersion")}")
implementation("org.jdbi:jdbi3-kotlin:${property("jdbiVersion")}")
implementation("org.postgresql:postgresql:${property("postgresqlVersion")}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${property("jupiterVersion")}")
testImplementation("io.mockk:mockk:${property("mockkVersion")}")
testImplementation("com.h2database:h2:${property("h2Version")}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${property("jupiterVersion")}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${property("jupiterVersion")}")
testImplementation(kotlin("test"))
}
tasks.withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}
tasks.withType<Test> {
useJUnitPlatform { excludeTags = setOf("Integration") }
}
tasks.register<Test>("allTests") {
outputs.upToDateWhen { false }
useJUnitPlatform { }
}
tasks.register<Test>("unitTest") {
outputs.upToDateWhen { false }
useJUnitPlatform { excludeTags = setOf("Integration") }
}
tasks.register<Test>("integrationTest") {
outputs.upToDateWhen { false }
useJUnitPlatform { includeTags = setOf("Integration") }
}
}