Skip to content

Instantly share code, notes, and snippets.

@jitpack-io jitpack-io/init.gradle
Last active Nov 30, 2018

What would you like to do?
init.gradle script to print Maven repositories. Copy to ~/.gradle/
# copy script to ~/.gradle/init.gradle
gradle.projectsEvaluated {
allprojects { project ->
task printRepos() {
println("Project repositories: ${}")
repositories {
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
println("Maven Repo: ${repo.url} - ${repo.credentials} in project ${}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.