Created
June 24, 2015 20:37
-
-
Save tophyr/b0cd998271da7216c6af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pom.withXml { | |
def newDep = asNode().dependencies[0].appendNode 'dependency' | |
def g = newDep.appendNode 'groupId' | |
g.setValue(project.group) | |
def a = newDep.appendNode 'artifactId' | |
a.setValue('version_plugin') | |
def v = newDep.appendNode 'version' | |
v.setValue(project.version) | |
def s = newDep.appendNode 'scope' | |
s.setValue('runtime') | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pom.withXml { | |
asNode().dependencies.appendNode { | |
dependency { | |
groupId { project.group } | |
artifactId { 'version_plugin' } | |
version { project.version } | |
scope { 'runtime' } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment