Skip to content

Instantly share code, notes, and snippets.

@mtilbrook-dev
Last active January 10, 2018 20:24
Show Gist options
  • Save mtilbrook-dev/804722c4ef5fbb5712f5213a172c8786 to your computer and use it in GitHub Desktop.
Save mtilbrook-dev/804722c4ef5fbb5712f5213a172c8786 to your computer and use it in GitHub Desktop.
Apply shared dependencies to android project
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'dependencies.gradle'
buildscript {
// Gradle will not find vars defined in an external file when referring to them
// in the buildscript block, unless you link it from the buildscript block, too.
apply from: 'dependencies.gradle'
repositories {
google()
jcenter()
}
dependencies {
gradlePlugins.each { plugin ->
classpath plugin
}
}
}
// rest of your root build.gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment