-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle.kts
47 lines (41 loc) · 1.42 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
plugins {
id("java-library")
id("pg-index-health.java-compilation")
id("pg-index-health.java-conventions")
id("pg-index-health.publish")
}
description = "pg-index-health is a Java library for analyzing and maintaining indexes and tables health in PostgreSQL databases on all hosts in the cluster."
dependencies {
api(project(":pg-index-health-model"))
api(project(":pg-index-health-jdbc-connection"))
api(project(":pg-index-health-core"))
implementation(libs.slf4j.api)
testImplementation(project(":pg-index-health-testing"))
testImplementation(testFixtures(project(":pg-index-health-model")))
testImplementation(testFixtures(project(":pg-index-health-jdbc-connection")))
testImplementation(testFixtures(project(":pg-index-health-core")))
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation(libs.logback.classic)
testImplementation("org.mockito:mockito-core")
testImplementation(libs.awaitility)
testImplementation(libs.postgresql)
}
tasks {
test {
useJUnitPlatform {
excludeTags("cluster")
}
}
}
val clusterTest = tasks.register("clusterTest", Test::class) {
description = "Runs tests on PostgreSQL cluster."
group = "verification"
useJUnitPlatform {
includeTags("cluster")
}
maxParallelForks = 1 // important!
mustRunAfter(tasks.test)
}
tasks.build {
dependsOn(clusterTest)
}