Skip to content

Commit aa2d6ac

Browse files
committed
Remove the unnecessary workaround for removing the generated extra dependencyManagement of POM
Closes gh-101
1 parent c8da746 commit aa2d6ac

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

publishing/mavenCentral.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ publishing {
3232
if (project.name != "views-gradle") {
3333
from components.java
3434
}
35-
// afterEvaluate {
36-
// artifact source: sourcesJar, classifier: "sources"
37-
// artifact source: javadocJar, classifier: "javadoc"
38-
// }
3935

4036
if (isGrailsPlugin) {
4137
artifact source: "${project.sourceSets.main.groovy.classesDirectory.get()}/META-INF/grails-plugin.xml",
@@ -51,24 +47,6 @@ publishing {
5147
pom.withXml {
5248
def pomNode = asNode()
5349
pomNode.children().last() + pomInfo
54-
try {
55-
pomNode.dependencyManagement.replaceNode {}
56-
} catch (Throwable e) {
57-
// ignore
58-
}
59-
60-
// simply remove dependencies without a version
61-
// version-less dependencies are handled with dependencyManagement
62-
// see https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/8 for more complete solutions
63-
pomNode.dependencies.dependency.findAll {
64-
it.version.text().isEmpty()
65-
}.each {
66-
try {
67-
it.replaceNode {}
68-
} catch (Throwable e) {
69-
// ignore
70-
}
71-
}
7250
}
7351
}
7452
}

0 commit comments

Comments
 (0)