-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (41 loc) · 1.05 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version "1.5.0"
id("com.palantir.graal") version "0.7.2"
id("com.github.johnrengelman.shadow") version "6.1.0"
}
group = "me.yujinyan"
version = "1.0-SNAPSHOT"
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}
}
tasks.withType<ShadowJar>().configureEach {
archiveFileName.set("klisp.jar")
}
application {
// https://github.com/johnrengelman/shadow/pull/612
// mainClass.set("MainKt")
mainClassName = "MainKt"
}
graal {
javaVersion("11")
mainClass("MainKt")
outputName("klisp")
option("--no-fallback")
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("io.kotest:kotest-runner-junit5:4.4.3")
testImplementation("io.kotest:kotest-assertions-core:4.4.3")
implementation("com.github.ajalt.clikt:clikt:3.1.0")
implementation(kotlin("stdlib"))
}