Lines Matching +full:root +full:- +full:pom
2 …* Copyright 2014-2020 JetBrains s.r.o and contributors. Use of this source code is governed by the…
6 /** Publish the platform JAR and POM so that consumers who depend on this module and can't read Gra…
7 metadata can still get the platform artifact and transitive dependencies from the POM: */
8 project.ext.publishPlatformArtifactsInRootModule = { MavenPublication platformPublication ->
12 platformPublication.pom.withXml { platformXml = it }
15 pom.withXml {
16 Node root = asNode()
17 // Remove the original content and add the content from the platform POM:
18 root.children().toList().each { root.remove(it as Node) }
19 platformXml.asNode().children().each { root.append(it as Node) }
21 // Adjust the self artifact ID, as it should match the root module's coordinates:
22 ((root.get("artifactId") as NodeList).get(0) as Node).setValue(artifactId)
24 // Set packaging to POM to indicate that there's no artifact:
25 root.appendNode("packaging", "pom")
28 Node dependencies = (root.get("dependencies") as NodeList).get(0) as Node