Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edpichler/acc1599e231053c7ea76459724d7316b to your computer and use it in GitHub Desktop.
Save edpichler/acc1599e231053c7ea76459724d7316b to your computer and use it in GitHub Desktop.
D.R.Y. - Reuse Gradle repository definition
This works however:
#### build.gradle
```gradle
buildscript {
// Repository Configuration
ext.repos = {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://plugins.gradle.org/m2/' }
}
repositories repos
dependencies {
. . .
}
}
// Local
repositories repos
// Global
allprojects {
repositories repos
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment