@@ -124,42 +124,6 @@ subprojects { project ->
124124
125125 ext {
126126 projectInfo = new PublishingConvention (project)
127- pomInfo = {
128- delegate. name projectInfo. projectName
129- delegate. description projectInfo. projectDescription
130- delegate. url projectInfo. projectURL
131-
132- delegate. licenses {
133- delegate. license {
134- delegate. name ' The Apache Software License, Version 2.0'
135- delegate. url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
136- delegate. distribution ' repo'
137- }
138- }
139-
140- delegate. scm {
141- delegate. url projectInfo. projectVcsUrl
142- delegate. connection projectInfo. projectVcsUrl
143- delegate. developerConnection projectInfo. projectVcsUrl
144- }
145-
146-
147- delegate. developers {
148- delegate. developer {
149- delegate. id ' graemerocher'
150- delegate. name ' Graeme Rocher'
151- }
152- delegate. developer {
153- delegate. id ' jeffscottbrown'
154- delegate. name ' Jeff Brown'
155- }
156- delegate. developer {
157- delegate. id ' burtbeckwith'
158- delegate. name ' Burt Beckwith'
159- }
160- }
161-
162- }
163127 }
164128
165129 apply plugin : ' groovy'
@@ -247,6 +211,14 @@ subprojects { project ->
247211 }
248212 }
249213 }
214+ pom. withXml {
215+ def pomNode = asNode()
216+ try {
217+ pomNode. dependencyManagement. replaceNode {}
218+ } catch (Throwable e) {
219+ // ignore
220+ }
221+ }
250222
251223 artifactId projectInfo. projectArtifactId
252224 from components. java
@@ -259,11 +231,6 @@ subprojects { project ->
259231 }
260232 }
261233
262- pom. withXml {
263- def xml = asNode()
264- def dependency = xml. dependencies. find { dep -> dep. artifactId == ' slf4j-simple' }
265- dependency?. optional = true
266- }
267234 }
268235 }
269236 }
0 commit comments