Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created September 19, 2021 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/49ff6b66de54889cf3e7d33bbbe4faf0 to your computer and use it in GitHub Desktop.
Save kdabir/49ff6b66de54889cf3e7d33bbbe4faf0 to your computer and use it in GitHub Desktop.
Convert Maven dependency to Gradle
#!/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