-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
72 lines (61 loc) · 2.18 KB
/
build.gradle.kts
File metadata and controls
72 lines (61 loc) · 2.18 KB
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
71
72
plugins {
java
id("com.gradleup.shadow") version "9.0.0-beta12"
}
group = "com.codeflash"
version = "1.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.esotericsoftware:kryo:5.6.2")
implementation("org.objenesis:objenesis:3.4")
implementation("org.xerial:sqlite-jdbc:3.45.0.0")
implementation("org.ow2.asm:asm:9.7.1")
implementation("org.ow2.asm:asm-commons:9.7.1")
implementation("org.jacoco:org.jacoco.agent:0.8.13:runtime")
implementation("org.jacoco:org.jacoco.cli:0.8.13:nodeps")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test {
useJUnitPlatform()
jvmArgs(
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens", "java.base/java.math=ALL-UNNAMED",
"--add-opens", "java.base/java.io=ALL-UNNAMED",
"--add-opens", "java.base/java.net=ALL-UNNAMED",
"--add-opens", "java.base/java.time=ALL-UNNAMED",
)
}
tasks.shadowJar {
archiveBaseName.set("codeflash-runtime")
archiveVersion.set("1.0.0")
archiveClassifier.set("")
relocate("org.objectweb.asm", "com.codeflash.shaded.org.objectweb.asm")
relocate("com.google.gson", "com.codeflash.shaded.com.google.gson")
relocate("com.esotericsoftware", "com.codeflash.shaded.com.esotericsoftware")
relocate("org.objenesis", "com.codeflash.shaded.org.objenesis")
relocate("org.slf4j", "com.codeflash.shaded.org.slf4j")
relocate("org.jacoco", "com.codeflash.shaded.org.jacoco")
manifest {
attributes(
"Main-Class" to "com.codeflash.Comparator",
"Premain-Class" to "com.codeflash.profiler.ProfilerAgent",
"Can-Retransform-Classes" to "true",
)
}
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
}
tasks.build {
dependsOn(tasks.shadowJar)
}