-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (46 loc) · 1.34 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.3.72"
}
group = "org.example.adventofcode2019"
version = "1.0-SNAPSHOT"
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.3.5")
implementation("com.google.guava", "guava", "29.0-jre")
compile(project(":intcode"))
compile(project(":grid"))
compile(project(":util"))
testCompile("junit", "junit", "4.12")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_12
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}
tasks.withType<Test> {
useJUnitPlatform()
}
dependencies {
val kotestVersion = "4.0.5"
testImplementation("io.kotest", "kotest-runner-junit5-jvm", kotestVersion) // for kotest framework
testImplementation("io.kotest", "kotest-assertions-core-jvm", kotestVersion) // for kotest core jvm assertions
testImplementation("io.kotest", "kotest-property-jvm", kotestVersion) // for kotest property test
}