forked from MovingBlocks/DestinationSol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
25 lines (20 loc) · 927 Bytes
/
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
include 'desktop', 'engine', 'modules'
import groovy.io.FileType
File gwtGradle = new File(rootDir, 'gwt/build.gradle')
if (gwtGradle.exists()) {
include 'gwt'
}
rootProject.name = 'DestinationSol'
// 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\.gradle/, { subprojectsSpecificationScript ->
//println "Magic is happening, applying from " + subprojectsSpecificationScript
apply from: subprojectsSpecificationScript
}
}
// This is put last to ensure that Android can detect the modules
File androidGradle = new File(rootDir, 'android/build.gradle')
if (androidGradle.exists()) {
include 'android'
}