-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
56 lines (42 loc) · 1.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
plugins {
kotlin("jvm") version "1.4.0"
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
// Main module
kotlin.sourceSets["main"].kotlin.srcDirs("src")
sourceSets["main"].resources.srcDirs("resources")
kotlin.sourceSets["test"].kotlin.srcDirs("test")
repositories {
mavenCentral()
jcenter()
maven(url = "https://dl.bintray.com/hotkeytlt/maven")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("com.github.h0tk3y.betterParse", "better-parse", "0.4.2")
implementation("com.andreapivetta.kolor", "kolor", "1.0.0")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.5.2")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.5.2")
}
kotlin {
sourceSets.all {
languageSettings.apply {
enableLanguageFeature("NewInference")
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
application {
mainClassName = "cyan.EntrypointKt"
}