Last active
May 28, 2019 18:26
-
-
Save drandarov-io/8d24cb39ff32d929197b16b542dabe0c to your computer and use it in GitHub Desktop.
D.R.Y. - Reuse Gradle repository definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
``` |
You're welcome :)
Your solution is wonderful~~brilliant~ thanks a lot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍 This works. Thanks.