Skip to content

Instantly share code, notes, and snippets.

@mileskrell
Created April 11, 2019 17:29
Show Gist options
  • Save mileskrell/7d6c63c47e8fe89dae721bd9164ff482 to your computer and use it in GitHub Desktop.
Save mileskrell/7d6c63c47e8fe89dae721bd9164ff482 to your computer and use it in GitHub Desktop.
Using Gradle's "extra properties" to share Android dependency versions (with Gradle Kotlin DSL)
// In project-level build.gradle
val navigationVersion by extra("2.0.0")
// In app-level build.gradle
val navigationVersion: String by rootProject.extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment