forked from CraftTweaker/CraftTweaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
25 lines (22 loc) · 879 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
rootProject.name = 'CraftTweaker'
include("ZenCode")
include("Crafttweaker_Annotations")
include("Crafttweaker_Annotation_Processors")
// Find the directories containing a "build.gradle" file in the root directory
// of the project. That is, every directory containing a "build.gradle" will
// be automatically the subproject of this project.
def subDirs = new File(rootDir, "ZenCode").listFiles(new FileFilter() {
boolean accept(File file) {
if (!file.isDirectory()) {
return false
}
if (file.name == 'ModuleDeserializer' || file.name == "ModuleSerializationShared" || file.name == "ModuleSerializer") {
return false
}
return new File(file, 'build.gradle').isFile()
}
})
subDirs.each { File dir ->
include(":" + dir.name)
project(":" + dir.name).projectDir = new File("./ZenCode/" + dir.name)
}