Created
September 19, 2021 02:56
-
-
Save kdabir/49ff6b66de54889cf3e7d33bbbe4faf0 to your computer and use it in GitHub Desktop.
Convert Maven dependency to Gradle
This file contains 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
#!/usr/bin/env groovy | |
if (System.in.available()) { | |
println new groovy.xml.XmlSlurper() | |
.parse(System.in) | |
.with {[groupId, artifactId, version, classifier]} | |
*.text() | |
.findAll() | |
.join(':') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment