|
1 | | -// Establish version and status |
2 | | -ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name |
3 | | - |
4 | | -buildscript { |
5 | | - repositories { |
6 | | - mavenLocal() |
7 | | - mavenCentral() |
8 | | - } |
9 | | - apply from: file('gradle/buildscript.gradle'), to: buildscript |
10 | | -} |
11 | | - |
12 | | -allprojects { |
13 | | - if (JavaVersion.current().isJava8Compatible()) { |
14 | | - tasks.withType(Javadoc) { |
15 | | - options.addStringOption('Xdoclint:none', '-quiet') // Doclint is onerous in Java 8. |
16 | | - } |
17 | | - } |
18 | | - repositories { |
19 | | - mavenLocal() |
20 | | - mavenCentral() |
21 | | - maven { url 'https://oss.sonatype.org/content/repositories/releases/' } |
22 | | - } |
| 1 | +plugins { |
| 2 | + id 'nebula.netflixoss' version '2.2.2' |
23 | 3 | } |
24 | 4 |
|
25 | | -apply from: file('gradle/convention.gradle') |
26 | | -apply from: file('gradle/maven.gradle') |
27 | | -if (!JavaVersion.current().isJava8Compatible()) { |
28 | | - apply from: file('gradle/check.gradle') // FindBugs is incompatible with Java 8. |
| 5 | +ext { |
| 6 | + githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name |
29 | 7 | } |
30 | | -apply from: file('gradle/license.gradle') |
31 | | -apply from: file('gradle/release.gradle') |
32 | | -apply plugin: 'idea' |
33 | 8 |
|
34 | 9 | subprojects { |
35 | | - apply from: rootProject.file('dagger.gradle') |
36 | | - group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project |
37 | | -} |
38 | | - |
39 | | -project(':feign-core') { |
40 | | - apply plugin: 'java' |
41 | | - |
42 | | - test { |
43 | | - useTestNG() |
44 | | - } |
45 | | - |
46 | | - dependencies { |
47 | | - testCompile 'com.google.guava:guava:14.0.1' |
48 | | - testCompile 'com.google.code.gson:gson:2.2.4' |
49 | | - testCompile 'com.fasterxml.jackson.core:jackson-databind:2.2.2' |
50 | | - testCompile 'org.testng:testng:6.8.5' |
51 | | - testCompile 'com.google.mockwebserver:mockwebserver:20130706' |
52 | | - } |
53 | | -} |
54 | | - |
55 | | -project(':feign-sax') { |
56 | | - apply plugin: 'java' |
57 | | - |
58 | | - test { |
59 | | - useTestNG() |
60 | | - } |
61 | | - |
62 | | - dependencies { |
63 | | - compile project(':feign-core') |
64 | | - testCompile 'com.google.guava:guava:14.0.1' |
65 | | - testCompile 'org.testng:testng:6.8.5' |
66 | | - } |
67 | | -} |
68 | | - |
69 | | -project(':feign-gson') { |
70 | | - apply plugin: 'java' |
71 | | - |
72 | | - test { |
73 | | - useTestNG() |
74 | | - } |
75 | | - |
76 | | - dependencies { |
77 | | - compile project(':feign-core') |
78 | | - compile 'com.google.code.gson:gson:2.2.4' |
79 | | - testCompile 'org.testng:testng:6.8.5' |
80 | | - } |
81 | | -} |
82 | | - |
83 | | -project(':feign-jackson') { |
84 | | - apply plugin: 'java' |
| 10 | + apply plugin: 'nebula.netflixoss' |
85 | 11 |
|
86 | | - test { |
87 | | - useTestNG() |
88 | | - } |
89 | | - |
90 | | - dependencies { |
91 | | - compile project(':feign-core') |
92 | | - compile 'com.fasterxml.jackson.core:jackson-databind:2.2.2' |
93 | | - testCompile 'org.testng:testng:6.8.5' |
94 | | - testCompile 'com.google.guava:guava:14.0.1' |
95 | | - } |
96 | | -} |
97 | | - |
98 | | -project(':feign-jaxb') { |
99 | | - apply plugin: 'java' |
100 | | - |
101 | | - test { |
102 | | - useTestNG() |
103 | | - } |
104 | | - |
105 | | - dependencies { |
106 | | - compile project(':feign-core') |
107 | | - testCompile 'org.testng:testng:6.8.5' |
108 | | - testCompile 'com.google.guava:guava:14.0.1' |
109 | | - } |
110 | | -} |
111 | | - |
112 | | -project(':feign-jaxrs') { |
113 | | - apply plugin: 'java' |
114 | | - |
115 | | - test { |
116 | | - useTestNG() |
117 | | - } |
118 | | - |
119 | | - dependencies { |
120 | | - compile project(':feign-core') |
121 | | - compile 'javax.ws.rs:jsr311-api:1.1.1' |
122 | | - testCompile project(':feign-gson') |
123 | | - testCompile 'com.google.guava:guava:14.0.1' |
124 | | - testCompile 'org.testng:testng:6.8.5' |
125 | | - } |
126 | | -} |
127 | | - |
128 | | -project(':feign-ribbon') { |
129 | | - apply plugin: 'java' |
130 | | - |
131 | | - test { |
132 | | - useTestNG() |
133 | | - } |
134 | | - |
135 | | - dependencies { |
136 | | - compile project(':feign-core') |
137 | | - compile 'com.netflix.ribbon:ribbon-loadbalancer:2.0-RC5' |
138 | | - testCompile 'org.testng:testng:6.8.5' |
139 | | - testCompile 'com.google.mockwebserver:mockwebserver:20130706' |
140 | | - } |
141 | | -} |
142 | | - |
143 | | -project(':feign-slf4j') { |
144 | | - apply plugin: 'java' |
145 | | - |
146 | | - test { |
147 | | - useTestNG() |
148 | | - } |
149 | | - |
150 | | - dependencies { |
151 | | - compile project(':feign-core') |
152 | | - compile 'org.slf4j:slf4j-api:1.7.5' |
153 | | - testCompile 'org.testng:testng:6.8.5' |
154 | | - testCompile 'org.slf4j:slf4j-simple:1.7.5' |
| 12 | + repositories { |
| 13 | + jcenter() |
155 | 14 | } |
| 15 | + apply from: rootProject.file('dagger.gradle') |
| 16 | + group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project |
156 | 17 | } |
0 commit comments