Properly support TrueOG Bootstrap
This commit is contained in:
1 parent
315370b985
commit
c3019d5f01
1 file changed
+14
@@ -30,6 +30,20 @@ repositories {
|
||||
ignoreGradleMetadataRedirection()
|
||||
}
|
||||
}
|
||||
def customMavenLocal = System.getProperty('SELF_MAVEN_LOCAL_REPO')
|
||||
if (customMavenLocal != null) {
|
||||
def mavenLocalDir = file(customMavenLocal)
|
||||
if (mavenLocalDir.isDirectory()) {
|
||||
println("Using SELF_MAVEN_LOCAL_REPO at: ${customMavenLocal}")
|
||||
maven {
|
||||
url = uri("file://${mavenLocalDir.absolutePath}")
|
||||
}
|
||||
} else {
|
||||
logger.error("TrueOG Bootstrap not found, defaulting to ~/.m2 for mavenLocal()")
|
||||
}
|
||||
} else {
|
||||
logger.error("TrueOG Bootstrap not found, defaulting to ~/.m2 to mavenLocal()")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
Reference in new issue
Block a user