-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
32 lines (28 loc) · 1.04 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
apply plugin: 'java'
repositories {
mavenCentral()
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs.addAll([
'--add-exports=java.rmi/sun.rmi.server=ALL-UNNAMED',
'--add-exports=java.rmi/sun.rmi.transport=ALL-UNNAMED',
'--add-exports=java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED'
])
}
dependencies {
implementation 'net.portswigger.burp.extender:burp-extender-api:2.3'
implementation fileTree(dir: 'libs', include: ['weblogic.jar', 'wlthint3client.jar'])
// testImplementation 用于为单元测试添加依赖,且会继承 implementation 的依赖
testImplementation fileTree(dir: 'libs', include: [
'coherence*.jar',
'permit-reflect-0.3.jar',
'com.bea.core.repackaged.springframework.spring_1.2.0.0_2-5-3.jar'
])
}
task fatJar(type: Jar) {
archivesBaseName = rootProject.name + "-all"
duplicatesStrategy = 'INCLUDE'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}