-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (39 loc) · 1004 Bytes
/
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
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
plugins {
kotlin("jvm") version "1.6.0"
id("com.lovelysystems.gradle") version "1.6.1"
}
repositories {
mavenCentral()
maven("https://raw.github.com/lovelysystems/maven/master/releases")
}
dependencies {
testImplementation("com.lovelysystems:lovely-db-testing:0.0.4")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation(kotlin("test-junit5"))
}
tasks.withType<Test> {
// always run tests
outputs.upToDateWhen {false}
useJUnitPlatform()
dependsOn("buildDockerImage")
testLogging {
showStandardStreams = true
events = setOf(PASSED, SKIPPED, FAILED)
}
}
lovely {
gitProject()
dockerProject("lovelysystems/lovely-db-commons")
with(dockerFiles) {
from("docker")
from("src/main/sql") {
into("schema/sql")
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}