-
Notifications
You must be signed in to change notification settings - Fork 78
/
settings.gradle
27 lines (24 loc) · 903 Bytes
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = 'https://maven.minecraftforge.net/' }
maven { url "https://repo.spongepowered.org/repository/maven-public/" }
}
}
apply from: 'minecraft.gradle'
rootProject.name = "oc2-${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')