-
Notifications
You must be signed in to change notification settings - Fork 64
/
build.gradle
67 lines (51 loc) · 1.34 KB
/
build.gradle
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.3"
}
}
allprojects {
apply plugin: 'java'
group 'zhouyu'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
subprojects {
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
runtime files(org.gradle.internal.jvm.Jvm.current().toolsJar)
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
}
project(":agent") {
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
manifest {
attributes 'Main-Class': 'zhouyu.agent.ZhouYu'
attributes 'Premain-Class': 'zhouyu.agent.ZhouYu'
attributes 'Agent-Class': 'zhouyu.agent.ZhouYu'
attributes 'Can-Redefine-Classes': true
attributes 'Can-Retransform-Classes': true
}
relocate 'javassist', 'zhouyu.javassist'
}
dependencies {
compile project(":core")
}
project.jar.enabled(false)
project.build.dependsOn(shadowJar)
}
project(":core") {
dependencies {
compile group: 'org.javassist', name: 'javassist', version: '3.27.0-GA'
}
}