-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle
45 lines (35 loc) · 1.26 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
42
43
44
45
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
gradlePluginPortal()
}
}
rootProject.name = 'world-weaver'
//include 'bclib-legacy'
apply from: "module-include.gradle"
ext.knownWoverModules.each { module ->
include module
}
// #### Custom Settings ####
// Change the next line to disable local lib loading
def allowLocalLibUse = true
//When true, the local lib is also used in commandline builds
def allowLocalLibInConsoleMode = false
def WunderLibPath = '../WunderLib'
// #### Logic ####
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
println "IntelliJ: ${isIDE}"
def WunderLibFolder = new File(WunderLibPath)
if (allowLocalLibUse && (isIDE || allowLocalLibInConsoleMode) && WunderLibFolder.exists()) {
println "Using local WunderLib from '${WunderLibFolder}'"
include ':wunderlib'
project(":wunderlib").projectDir = WunderLibFolder
project(':wunderlib').buildFileName = './wunderlib-composit.gradle'
}