File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -58,22 +58,25 @@ subprojects {
5858 publishing {
5959 publications {
6060 nebula(MavenPublication ) {
61- pom. withXml {
62- configurations. compile. resolvedConfiguration. firstLevelModuleDependencies. each { dep ->
63- if (dep. moduleName == " servlet-api" ) {
64- asNode(). dependencies[0 ]. dependency. find {
65- it. artifactId[0 ]. text() == dep. moduleName &&
66- it. groupId[0 ]. text() == dep. moduleGroup
67- }. scope[0 ]. value = ' provided'
68- } else {
69- asNode(). dependencies[0 ]. dependency. find {
70- it. artifactId[0 ]. text() == dep. moduleName &&
71- it. groupId[0 ]. text() == dep. moduleGroup
72- }. scope[0 ]. value = ' compile'
73- }
74- }
75- }
76- }
61+ println (" project.name -> " + project. name)
62+ if (! project. name. equals(" hystrix-dashboard" ) && ! project. name. equals(" hystrix-examples-webapp" )) {
63+ pom. withXml {
64+ configurations. compile. resolvedConfiguration. firstLevelModuleDependencies. each { dep ->
65+ if (dep. moduleName == " servlet-api" ) {
66+ asNode(). dependencies[0 ]. dependency. find {
67+ it. artifactId[0 ]. text() == dep. moduleName &&
68+ it. groupId[0 ]. text() == dep. moduleGroup
69+ }. scope[0 ]. value = ' provided'
70+ } else {
71+ asNode(). dependencies[0 ]. dependency. find {
72+ it. artifactId[0 ]. text() == dep. moduleName &&
73+ it. groupId[0 ]. text() == dep. moduleGroup
74+ }. scope[0 ]. value = ' compile'
75+ }
76+ }
77+ }
78+ }
79+ }
7780 }
7881 }
7982}
You can’t perform that action at this time.
0 commit comments