forked from MovingBlocks/DestinationSol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
24 lines (19 loc) · 860 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
include 'desktop', 'engine', 'modules'
import groovy.io.FileType
File androidGradle = new File(rootDir, 'android/build.gradle')
if (androidGradle.exists()) {
include 'android'
}
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
}
}