-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsettings.gradle
More file actions
27 lines (27 loc) · 1.21 KB
/
settings.gradle
File metadata and controls
27 lines (27 loc) · 1.21 KB
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
def name = 'BottomLeftUILib'
if(new File(rootDir.parent, name).exists()){
println("Compiling with local BLUI Lib")
includeBuild("../${name}"){
dependencySubstitution{sub ->
sub.all{
if(it.requested instanceof ModuleComponentSelector){
def req = it.requested as ModuleComponentSelector
if(req.group == 'com.github.Anuken.Arc'){
useTarget "com.github.Anuken.Arc:$req.module:$mindustryVersion"
}else if(req.group.startsWith('com.github.MEEPofFaith')){
def group = req.group.substring('com.github.MEEPofFaith'.length())
if(group.isEmpty() && req.module == name){
useTarget sub.project(':')
}else if(!group.isEmpty() && group.substring(1) == name){
if(req.module.endsWith('.gradle.plugin')){
useTarget sub.project(':')
}else{
useTarget sub.project(":$req.module")
}
}
}
}
}
}
}
}