Properly support TrueOG Bootstrap

This commit is contained in:
NotAlexNoyle committed 2025-01-01 17:48:59 -05:00
1 parent 315370b985
commit c3019d5f01
1 file changed
+14
+14
View File
@@ -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 {