Maybe this will include the jetbrains annotations in the pom?

This commit is contained in:
extendedclip 2020-08-03 10:00:59 -04:00
parent 364635cd06
commit 0982505574

View File

@ -99,8 +99,16 @@ publishing {
from components.java from components.java
pom.withXml { pom.withXml {
asNode().appendNode("packaging", "jar") asNode().appendNode("packaging", "jar")
asNode().remove(asNode().get("dependencies")) asNode().remove(asNode().get("dependencies"))
// jetbrains annotations
def dependenciesNode = asNode().appendNode('dependencies')
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', "org.jetbrains")
dependencyNode.appendNode('artifactId', "annotations")
dependencyNode.appendNode('version', "19.0.0")
} }
} }
} }