forked from ishland/Hotpur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
41 lines (36 loc) · 1.23 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* This file was generated by the Gradle 'init' task.
*/
pluginManagement {
repositories {
maven {
url = "https://maven.fabricmc.net"
name = "FabricMC"
}
gradlePluginPortal()
}
}
rootProject.name = 'hotpur-parent'
if(!rootProject.projectDir.toPath().resolve("Hotpur-API").resolve("build.gradle").toFile().isFile()
|| !rootProject.projectDir.toPath().resolve("Hotpur-API").resolve("build.gradle").toFile().isFile()
|| !rootProject.projectDir.toPath().resolve("Hotpur-fabric-loader").resolve("build.gradle").toFile().isFile()) {
if(!rootProject.projectDir.toPath().resolve("Purpur").resolve("purpur").toFile().isFile()) {
print "Updating upstream"
exec {
workingDir rootProject.projectDir
commandLine './hotpur', 'up'
}
}
print "Patching Hotpur"
exec {
workingDir rootProject.projectDir
commandLine './hotpur', 'patch'
}
}
include(':hotpur-api')
include(':hotpur')
project(':hotpur-api').projectDir = file('Hotpur-API')
project(':hotpur').projectDir = file('Hotpur-Server')
include ':Paper-MojangAPI'
include(':fabric-loader')
project(':fabric-loader').projectDir = file('Hotpur-fabric-loader')