Skip to content

Instantly share code, notes, and snippets.

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

Embed
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: ${project.name}")
repositories {
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
println("Maven Repo: ${repo.url} - ${repo.credentials} in project ${project.name}")
}
}
println()
}
}
}
}
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.