Skip to content
Permalink
Browse files
fix: fall back to project root repositories.gradle (#1300)
  • Loading branch information
erisu committed Aug 2, 2021
1 parent 1636d70 commit 565ac9c7b1b9a086b9bbd2a75b8ef94a5357dd5d
Showing 3 changed files with 21 additions and 3 deletions.
@@ -29,7 +29,13 @@ buildscript {
}

allprojects {
apply from: 'repositories.gradle'
def hasRepositoriesGradle = file('repositories.gradle').exists()
if (hasRepositoriesGradle) {
apply from: 'repositories.gradle'
} else {
apply from: "${project.rootDir}/repositories.gradle"
}

repositories repos
}

@@ -60,7 +60,13 @@ buildscript {

// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
apply from: 'repositories.gradle'
def hasRepositoriesGradle = file('repositories.gradle').exists()
if (hasRepositoriesGradle) {
apply from: 'repositories.gradle'
} else {
apply from: "${project.rootDir}/repositories.gradle"
}

repositories repos
}

@@ -30,7 +30,13 @@ buildscript {
}

allprojects {
apply from: 'repositories.gradle'
def hasRepositoriesGradle = file('repositories.gradle').exists()
if (hasRepositoriesGradle) {
apply from: 'repositories.gradle'
} else {
apply from: "${project.rootDir}/repositories.gradle"
}

repositories repos
}

0 comments on commit 565ac9c

Please sign in to comment.