-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
101 lines (84 loc) · 3.16 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@file:Suppress("SpellCheckingInspection")
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.21"
application
}
group = "com.bkahlert"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation("com.bkahlert.kommons:kommons:1.11.2")
// implementation("com.bkahlert.kommons:kommons:1.12.0-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.21") {
because("filepeek takes 1.3")
}
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.5.0-alpha")
implementation("io.opentelemetry:opentelemetry-sdk:1.5.0")
implementation("io.opentelemetry:opentelemetry-exporter-jaeger:1.5.0")
implementation("io.opentelemetry:opentelemetry-exporter-logging:1.5.0")
implementation("io.grpc:grpc-netty:1.40.1")
implementation("com.github.ajalt.clikt:clikt:3.1.0")
implementation("io.github.config4k:config4k:0.4.2")
implementation("org.apache.commons:commons-compress:1.21") {
because("needed to extract downloaded archives containing the image")
}
testImplementation(platform("org.junit:junit-bom:5.8.0-RC1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.junit.platform:junit-platform-commons")
testImplementation("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.platform:junit-platform-console") {
because("needed to launch the JUnit Platform Console program")
}
implementation("io.strikt:strikt-core:0.30.1")
implementation("io.strikt:strikt-jvm:0.30.1")
implementation(kotlin("stdlib-jdk8"))
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
languageVersion = "1.5"
freeCompilerArgs = listOf(
"-Xjvm-default=all",
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
"-Xopt-in=kotlin.time.ExperimentalTime",
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xopt-in=kotlin.io.path.ExperimentalPathApi",
"-Xinline-classes"
)
}
}
withType<ProcessResources> {
filesMatching("build.properties") {
expand(project.properties)
}
}
test {
useJUnitPlatform()
testLogging {
events = setOf(FAILED, STANDARD_OUT, STANDARD_ERROR)
exceptionFormat = FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
minHeapSize = "128m"
maxHeapSize = "512m"
failFast = false
ignoreFailures = true
}
}
application {
mainClass.set("MainKt")
}