-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (53 loc) · 1.98 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.gradle.api.file.DuplicatesStrategy.WARN
plugins {
val kotlinVersion = "1.5.31"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
}
repositories {
mavenCentral()
}
dependencies {
implementation("commons-io:commons-io:2.8.0")
val coroutinesVersion = "1.5.2"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("io.github.microutils:kotlin-logging:2.0.3")
val kotlinxSerializationVersion = "1.3.0"
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinxSerializationVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinxSerializationVersion")
val koinVersion = "3.1.2"
implementation("io.insert-koin:koin-core:$koinVersion")
testImplementation("io.insert-koin:koin-core:$koinVersion")
// JUnit dependencies
val junitVersion = "5.8.1"
testImplementation(platform("org.junit:junit-bom:$junitVersion"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
// Kotest dependencies
val kotestVersion = "5.0.0.RC"
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-property:$kotestVersion")
testImplementation("org.apache.commons:commons-math3:3.4")
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "16"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "16"
}
jar {
duplicatesStrategy = WARN
}
test {
useJUnitPlatform()
jvmArgs = listOf("-XX:+HeapDumpOnOutOfMemoryError")
maxHeapSize = "512m"
}
}