-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle
51 lines (41 loc) · 999 Bytes
/
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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'com.jas.agent'
repositories {
mavenCentral()
}
dependencies {
implementation 'net.bytebuddy:byte-buddy:1.14.11'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
jar {
archiveBaseName = 'agent'
manifest {
attributes 'Premain-Class': 'com.jas.agent.Main'
attributes 'Agent-Class': 'com.jas.agent.Main'
attributes 'Can-Redefine-Classes': true
attributes 'Can-Retransform-Classes': true
attributes 'Can-Set-Native-Method-Prefix': true
}
}
shadowJar {
archiveBaseName = "agent"
archiveClassifier = null
doLast {
copy {
from 'build/libs/agent.jar'
into 'test'
}
copy {
from 'demo/build/libs/demo.jar'
into 'test'
}
}
}
jar.finalizedBy shadowJar
test {
useJUnitPlatform()
}