17 lines
709 B
Groovy
17 lines
709 B
Groovy
import groovy.io.FileType
|
|
|
|
rootProject.name = 'Terasology'
|
|
|
|
includeBuild("build-logic")
|
|
include 'engine', 'engine-tests', 'facades', 'metas', 'libs', 'modules'
|
|
|
|
// Handy little snippet found online that'll "fake" having nested settings.gradle files under /modules, /libs, etc
|
|
rootDir.eachDir { possibleSubprojectDir ->
|
|
|
|
// First scan through all subdirs that has a subprojects.gradle in it and apply that script (recursive search!)
|
|
possibleSubprojectDir.eachFileMatch FileType.FILES, ~/subprojects\.settings\.gradle/, { subprojectsSpecificationScript ->
|
|
//println "Magic is happening, applying from " + subprojectsSpecificationScript
|
|
apply from: subprojectsSpecificationScript
|
|
}
|
|
}
|