-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
104 lines (86 loc) · 3.42 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
group = 'info.yangguo'
version = '1.0-SNAPSHOT'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'fatjar'
apply plugin: 'groovy'
jar {
baseName = "demo"
}
fatJar {
classifier 'fat'
// We need to add the main class to the manifest, otherwise the JAR won't start.
manifest {
attributes 'Main-Class': 'info.yangguo.demo.attch_api.test1.TestMainInJar', 'Agent-Class': 'info.yangguo.demo.attch_api.test1.AgentMain', 'Can-Redefine-Classes': 'true', 'Can-Retransform-Classes': 'true'
}
// We have to exclude signature files from the fat JAR, otherwise we'll get invalid signature file digest errors.
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
}
ext {
frameworkVersion = '1.1.2.RELEASE'
springVersion = '3.1.3.RELEASE'
metricsVersion = '3.1.0'
}
repositories {
mavenLocal()
mavenCentral()
}
buildDir = 'target'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
compile "io.netty:netty-all:4.1.18.Final"
// netty-tcnative([group: 'io.netty',name:'netty-tcnative',version:'2.0.8.Final',ext:'jar',classifier:'osx-x86_64'])
// compile "io.netty:netty-tcnative:2.0.8.Final:${os.detected.classifier}"
compile "io.netty:netty-tcnative:2.0.8.Final:osx-x86_64"
compile "org.eclipse.jetty:jetty-alpn-server:9.4.9.v20180320"
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'org.squirrelframework:squirrel-foundation:0.3.6'
compile 'joda-time:joda-time:2.7'
compile 'junit:junit:4.11'
compile 'com.sun.tools.btrace:btrace-client:1.2.3'
compile 'com.sun.tools.btrace:btrace-boot:1.2.3'
compile 'com.sun.tools.btrace:btrace-agent:1.2.3'
compile "org.codehaus.groovy:groovy-all:2.4.4"
compile 'eu.appsatori:gradle-fatjar-plugin:0.2'
compile 'org.javassist:javassist:3.20.0-GA'
compile 'commons-lang:commons-lang:2.6'
compile 'commons-io:commons-io:2.4'
compile "io.dropwizard.metrics:metrics-core:${metricsVersion}"
compile "io.dropwizard.metrics:metrics-graphite:${metricsVersion}"
compile "io.dropwizard.metrics:metrics-jvm:${metricsVersion}"
compile "io.dropwizard.metrics:metrics-logback:${metricsVersion}"
compile "com.ryantenney.metrics:metrics-spring:3.1.2"
compile 'ch.ethz.ganymed:ganymed-ssh2:262'
compile 'com.jcraft:jsch:0.1.53'
compile 'org.springframework.security:spring-security-crypto:4.0.4.RELEASE'
compile 'io.reactivex:rxjava:1.2.4'
compile 'org.owasp.esapi:esapi:2.1.0.1'
compile 'org.apache.zookeeper:zookeeper:3.4.6'
compile 'org.apache.curator:curator-framework:2.5.0'
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'org.apache.httpcomponents:httpcore:4.2.5'
compile 'io.atomix:atomix:3.0.6'
compile 'io.atomix:atomix-raft:3.0.6'
// compile 'io.atomix:atomix:2.1.0-beta2'
compile 'commons-fileupload:commons-fileupload:1.3.3'
compile files('/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/tools.jar')
compile files('/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/sa-jdi.jar')
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2'
}
}
sourceSets {
test {
java.srcDirs = ['src/main/java', 'src/test/java']
groovy.srcDirs = ['src/main/groovy', 'src/test/groovy']
}
}
apply plugin: 'idea'