Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mcmoe/2e91bd12b117c8aae852aec048a56b51 to your computer and use it in GitHub Desktop.
Save mcmoe/2e91bd12b117c8aae852aec048a56b51 to your computer and use it in GitHub Desktop.
How to link to a local Gradle dependency and compile it from source

add this to your settings.gradle

include ':my-other-project'
project(':my-other-project').projectDir = new File(settingsDir, '../my-other-project')

then you can link to it in your build.gradle like so

compile project(':my-other-project')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment