Created
March 1, 2016 13:01
-
-
Save leslie-leder/cb14f014da8b4e55250b to your computer and use it in GitHub Desktop.
Gradle - list publication info
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
publishing { | |
repositories.each {repo-> | |
println("repo: ${repo.url}") | |
} | |
} | |
allprojects{ | |
afterEvaluate { | |
println(">>") | |
project.publishing.publications.each{publication-> | |
if(publication instanceof MavenPublication){ | |
println(">>: ${publication.groupId}:${publication.artifactId}:${publication.version}") | |
publication.artifacts.each{artifact-> | |
println("\t${artifact.classifier}:${artifact.extension}") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment