Move mavenLocal() to bottom of repositories list

This commit moves mavenLocal() to the bottom of the repositories list
so that Gradle's Eclipse IDE support will properly link binary JARs to
their source JARS in generated Eclipse .classpath files.

According to Gradle experts, "`mavenLocal` should basically never be
the first repo in the list."

https://github.com/eclipse/buildship/issues/655#issuecomment-366227296
This commit is contained in:
Sam Brannen
2019-02-23 00:50:57 +01:00
parent 9f751ef914
commit 9093b870dd

View File

@@ -146,9 +146,9 @@ configure(allprojects) { project ->
}
repositories {
mavenLocal()
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.spring.io/snapshot" } // Reactor
mavenLocal()
}
dependencies {