27 lines
910 B
Groovy
27 lines
910 B
Groovy
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
maven { url = 'https://maven.minecraftforge.net/' }
|
|
maven { url "https://repo.spongepowered.org/repository/maven-public/" }
|
|
}
|
|
}
|
|
|
|
apply from: 'minecraft.gradle'
|
|
rootProject.name = "OC2LowSpec-${minecraft_version}-${minecraft_sdk}"
|
|
|
|
def substituteLocal(final directoryName, final libraryName) {
|
|
final def path = new File("../${directoryName}");
|
|
if (path.exists()) {
|
|
println("Found local [${directoryName}] project, substituting...")
|
|
includeBuild(path) {
|
|
dependencySubstitution {
|
|
substitute module(libraryName) using project(':')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
substituteLocal('sedna-mc', 'curse.maven:sedna-511276')
|
|
substituteLocal('ceres', 'li.cil.ceres:ceres')
|
|
substituteLocal('sedna', 'li.cil.sedna:sedna')
|
|
substituteLocal('buildroot', 'li.cil.sedna:sedna-buildroot')
|