mirror of
https://github.com/threedr3am/ZhouYu
synced 2026-06-08 17:47:28 +00:00
68 lines
1.3 KiB
Groovy
68 lines
1.3 KiB
Groovy
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'
|
|
}
|
|
}
|