-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
79 lines (70 loc) · 2.27 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
import org.asciidoctor.gradle.jvm.AsciidoctorTask
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
application
kotlin("jvm")
id("org.asciidoctor.jvm.convert") version "3.3.2"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "pl.zalas"
version = project.version
java.sourceCompatibility = JavaVersion.VERSION_17
val xoomVersion = "1.10.1"
val junitVersion = "5.9.1"
val restAssuredVersion = "5.2.0"
val testcontainersVersion = "1.17.4"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("io.vlingo.xoom:xoom-actors:$xoomVersion")
implementation("io.vlingo.xoom:xoom-lattice:$xoomVersion")
implementation("io.vlingo.xoom:xoom-symbio:$xoomVersion")
implementation("io.vlingo.xoom:xoom-symbio-jdbc:$xoomVersion")
implementation("io.vlingo.xoom:xoom-http:$xoomVersion")
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testImplementation("io.rest-assured:rest-assured:$restAssuredVersion")
testImplementation("io.rest-assured:kotlin-extensions:$restAssuredVersion")
testImplementation("org.testcontainers:testcontainers:$testcontainersVersion")
testImplementation("org.testcontainers:junit-jupiter:$testcontainersVersion")
testImplementation("org.testcontainers:postgresql:$testcontainersVersion")
}
application {
mainClass.set("pl.zalas.mastermind.infrastructure.http.Application")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
shadowJar {
archiveClassifier.set("")
}
}
tasks {
test {
useJUnitPlatform()
testLogging {
events = mutableSetOf(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.PASSED)
}
}
}
tasks {
"asciidoctor"(AsciidoctorTask::class) {
setBaseDir("docs")
setSourceDir(file("docs"))
setOutputDir(file("build/docs"))
sources(delegateClosureOf<PatternSet> {
include("index.adoc")
})
outputs.upToDateWhen { false }
attributes(mapOf(
"source-highlighter" to "coderay",
"snippets" to file("build/generated-snippets")
))
}
}