forked from FrozenBlock/WilderWild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
41 lines (34 loc) · 1.36 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
41
pluginManagement {
repositories {
maven {
name = 'Quilt'
url = 'https://maven.quiltmc.org/repository/release'
}
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
gradlePluginPortal()
}
}
rootProject.name = "Wilder Wild"
def allowLocalFrozenLibUse = true
def allowFrozenLibInConsoleMode = true
def FrozenLibPath = '../FrozenLib'
def FrozenLibPathGitHub = '../WilderWild/FrozenLib'
def isIDE = properties.containsKey('android.injected.invoked.from.ide')
|| (System.getenv("XPC_SERVICE_NAME") ?: "").contains("intellij")
|| (System.getenv("XPC_SERVICE_NAME") ?: "").contains(".idea")
|| System.getenv("IDEA_INITIAL_DIRECTORY") != null
def FrozenLibFolder = new File(FrozenLibPath)
def FrozenLibFolderGitHub = new File(FrozenLibPathGitHub)
if (allowLocalFrozenLibUse && (isIDE || allowFrozenLibInConsoleMode) && FrozenLibFolder.exists()) {
include ':FrozenLib'
project(":FrozenLib").projectDir = FrozenLibFolder
project(':FrozenLib').buildFileName = './build.gradle'
} else if (allowLocalFrozenLibUse && (isIDE || allowFrozenLibInConsoleMode) && FrozenLibFolderGitHub.exists()) {
include ':FrozenLib'
project(":FrozenLib").projectDir = FrozenLibFolderGitHub
project(':FrozenLib').buildFileName = './build.gradle'
}