-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
48 lines (41 loc) · 1.2 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.21"
application
id("com.github.johnrengelman.shadow") version "5.0.0"
}
repositories {
jcenter()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.github.ajalt:clikt:1.6.0")
implementation("net.bytebuddy:byte-buddy:1.9.10")
implementation("net.bytebuddy:byte-buddy-agent:1.9.10")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("org.agrona:agrona:0.9.4")
}
application {
applicationName = "jstacktrace"
mainClassName = "jstacktrace.AppKt"
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val jar: Jar by tasks
jar.apply {
manifest {
attributes(mapOf(
"Premain-Class" to "jstacktrace.AgentKt",
"Agent-Class" to "jstacktrace.AgentKt",
"Can-Redefine-Classes" to "true",
"Can-Retransform-Classes" to "true"
))
}
}