@@ -8,7 +8,7 @@ buildscript {
8
8
}
9
9
10
10
plugins {
11
- id ' nebula.netflixoss' version ' 3.3 .0'
11
+ id ' nebula.netflixoss' version ' 3.4 .0'
12
12
id ' me.champeau.gradle.jmh' version ' 0.2.0'
13
13
id ' net.saliman.cobertura' version ' 2.2.8'
14
14
}
@@ -29,7 +29,8 @@ subprojects {
29
29
apply plugin : ' nebula.netflixoss'
30
30
apply plugin : ' java'
31
31
apply plugin : ' nebula.provided-base'
32
-
32
+ apply plugin : ' nebula.compile-api'
33
+
33
34
sourceCompatibility = 1.6
34
35
targetCompatibility = 1.6
35
36
@@ -52,30 +53,4 @@ subprojects {
52
53
scopes. COMPILE . plus + = [configurations. provided]
53
54
}
54
55
}
55
-
56
- // mark all first-level dependencies as 'compile' in generated POM
57
- // except for 'servlet-api', which should be 'provided'
58
- publishing {
59
- publications {
60
- nebula(MavenPublication ) {
61
- if (! project. name. equals(" hystrix-dashboard" ) && ! project. name. equals(" hystrix-examples-webapp" )) {
62
- pom. withXml {
63
- configurations. compile. resolvedConfiguration. firstLevelModuleDependencies. each { dep ->
64
- if (dep. moduleName == " servlet-api" ) {
65
- asNode(). dependencies[0 ]. dependency. find {
66
- it. artifactId[0 ]. text() == dep. moduleName &&
67
- it. groupId[0 ]. text() == dep. moduleGroup
68
- }. scope[0 ]. value = ' provided'
69
- } else {
70
- asNode(). dependencies[0 ]. dependency. find {
71
- it. artifactId[0 ]. text() == dep. moduleName &&
72
- it. groupId[0 ]. text() == dep. moduleGroup
73
- }. scope[0 ]. value = ' compile'
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }
80
- }
81
56
}
0 commit comments