forked from Netflix/Hystrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.98 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
// Establish version and status
ext.releaseVersion = '1.1.3' // TEMPLATE: Set to latest release
ext.githubProjectName = rootProject.name // TEMPLATE: change to match github project, if it doesn't match project name
buildscript {
repositories { mavenCentral() }
}
allprojects {
repositories { mavenCentral() }
}
//apply from: file('gradle/release.gradle') // Not fully tested
apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
//apply from: file('gradle/license.gradle') // Waiting for re-release
subprojects {
// Closure to configure all the POM with extra info, common to all projects
pom {
project {
url "https://github.com/Netflix/${rootProject.githubProjectName}"
scm {
connection "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git"
url "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git"
developerConnection "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git"
}
issueManagement {
system 'github'
url "https://github.com/Netflix/${rootProject.githubProjectName}/issues"
}
}
}
group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project
dependencies {
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'com.sun.jersey:jersey-core:1.11'
testCompile 'org.testng:testng:6.1.1'
testCompile 'org.mockito:mockito-core:1.8.5'
}
}
project(':template-client') {
dependencies {
compile 'org.slf4j:slf4j-api:1.6.3'
compile 'com.sun.jersey:jersey-client:1.11'
}
}
project(':template-server') {
apply plugin: 'war'
apply plugin: 'jetty'
dependencies {
compile 'com.sun.jersey:jersey-server:1.11'
compile 'com.sun.jersey:jersey-servlet:1.11'
compile project(':template-client')
}
}