-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 1.19 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
application
}
group = "me.snwy"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.jline:jline-builtins:3.21.0")
implementation("org.jline:jline-reader:3.21.0")
implementation("org.jline:jline-terminal:3.21.0")
implementation("org.knowm.xchart:xchart:3.8.1")
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j:0.14.0")
implementation("com.fazecast:jSerialComm:2.9.1")
implementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation(kotlin("test"))
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
application {
mainClass.set("oasis.MainKt")
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes["Main-Class"] = "me.snwy.oasis.MainKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile)) {
exclude("META-INF/*.RSA", "META-INF/*.DSA", "META-INF/*.SF", "META-INF/*.EC")
}
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}