forked from indeedeng/ttorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
127 lines (98 loc) · 3 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
buildscript {
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
apply from: file('gradle/convention.gradle')
apply from: file('gradle/github.gradle')
apply from: file('gradle/nexus.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/license.gradle')
// apply from: file('gradle/release.gradle')
subprojects {
group = "org.anarres.ttorrent"
apply plugin: 'eclipse'
eclipse {
classpath {
downloadSources = true
}
jdt {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
}
configurations {
compile {
exclude group: 'commons-logging', module: 'commons-logging'
// exclude group: 'log4j', module: 'log4j'
// exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
}
dependencies {
compile 'com.google.code.findbugs:jsr305:2.0.3'
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'com.google.guava:guava:18.0'
compile 'io.dropwizard.metrics:metrics-core:3.1.0'
testCompile 'junit:junit:4.11'
testCompile 'org.easymock:easymock:3.2'
testRuntime 'org.slf4j:jcl-over-slf4j:1.7.7'
testRuntime 'org.slf4j:slf4j-simple:1.7.7'
}
}
project(':ttorrent-protocol') {
dependencies {
compile 'io.netty:netty-all:4.0.23.Final'
testCompile project(':ttorrent-tracker-simple')
testCompile 'commons-io:commons-io:2.4'
}
}
project(':ttorrent-tracker-client') {
dependencies {
compile project(':ttorrent-protocol')
compile 'org.apache.httpcomponents:httpasyncclient:4.0.2'
testCompile project(':ttorrent-tracker-simple')
}
}
project(':ttorrent-tracker') {
dependencies {
compile project(':ttorrent-protocol')
testCompile project(':ttorrent-tracker-simple')
}
}
project(':ttorrent-tracker-simple') {
apply plugin: 'application'
mainClassName = 'com.turn.ttorrent.tracker.simple.SimpleTrackerMain'
dependencies {
compile project(':ttorrent-tracker')
compile 'org.simpleframework:simple:5.1.6'
compile 'net.sf.jopt-simple:jopt-simple:4.7'
testCompile project(':ttorrent-tracker-client')
}
}
project(':ttorrent-tracker-servlet') {
dependencies {
compile project(':ttorrent-tracker')
compile 'javax.servlet:javax.servlet-api:3.1.0'
}
}
project(':ttorrent-tracker-spring') {
dependencies {
compile project(':ttorrent-tracker-servlet')
def springVersion = "4.1.1.RELEASE"
compile "org.springframework:spring-webmvc:$springVersion"
// compile 'javax.servlet:servlet-api:2.5'
compile 'javax.servlet:javax.servlet-api:3.1.0'
}
}
project(':ttorrent-client') {
apply plugin: 'application'
mainClassName = 'com.turn.ttorrent.client.main.ClientMain'
dependencies {
compile project(':ttorrent-tracker-client')
compile 'commons-io:commons-io:2.4'
compile 'net.sf.jopt-simple:jopt-simple:4.7'
testCompile project(':ttorrent-tracker-simple')
testCompile project(':ttorrent-protocol').sourceSets.test.output
testCompile project(':ttorrent-tracker-client').sourceSets.test.output
}
}