Skip to content

Commit

Permalink
Update maven local repo priority
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalavei committed Dec 7, 2023
1 parent 21d545e commit c81e838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildSrc/repos.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def addMavenRepositories(RepositoryHandler handler) {
def isJBFork = true
if (isJBFork) {
handler.mavenCentral()
// Keep mavenLocal() repository below mavenCentral to avoid issues with stdlib imports
handler.mavenLocal()
handler.google()
handler.gradlePluginPortal()
handler.maven {
Expand All @@ -75,7 +77,6 @@ def addMavenRepositories(RepositoryHandler handler) {
includeModule("com.android.tools", "r8")
}
}
handler.mavenLocal()
}
// Ordering appears to be important: b/229733266
def androidPluginRepoOverride = System.getenv("GRADLE_PLUGIN_REPO")
Expand Down

0 comments on commit c81e838

Please sign in to comment.