generated from hughjdavey/aoc-kotlin-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
70 lines (55 loc) · 1.79 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(15))
}
}
plugins {
application
kotlin("jvm") version "1.6.10"
kotlin("kapt") version "1.6.10"
}
application {
mainClass.set("util.Runner")
}
version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
maven("https://repo.kotlin.link")
}
dependencies {
//implementation(kotlin("stdlib-jdk8"))
implementation("org.reflections", "reflections", "0.9.12")
implementation("io.arrow-kt", "arrow-fx", "0.11.0")
implementation("io.arrow-kt", "arrow-optics", "0.11.0")
implementation("io.arrow-kt", "arrow-syntax", "0.11.0")
kapt("io.arrow-kt", "arrow-meta", "0.11.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
testImplementation("org.hamcrest", "hamcrest", "2.2")
implementation("io.vavr", "vavr", "0.10.3")
implementation("io.vavr", "vavr-kotlin", "0.10.2")
implementation("com.vdurmont", "emoji-java", "5.1.1")
implementation("com.beust", "klaxon", "5.0.1")
implementation("commons-io", "commons-io", "2.8.0")
implementation("space.kscience:kmath-core:0.2.1")
implementation("space.kscience:kmath-complex:0.2.1")
implementation("com.github.freva:ascii-table:1.1.0")
implementation("org.seleniumhq.selenium:selenium-java:2.41.0")
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "15"
}
tasks.withType<Test> {
useJUnitPlatform()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}