forked from CraftTweaker/CraftTweaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
38 lines (34 loc) · 1.07 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
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 excludedProjects = [
"ModuleDeserializer",
"ModuleSerializationShared",
"ModuleSerializer",
"JavaSource",
"JavaSourceCompiler",
"IDE",
"Constructor",
"DrawableGui",
"DrawableGuiIconConverter",
"CompilerShared"
]
def subDirs = new File(rootDir, "ZenCode").listFiles(new FileFilter() {
boolean accept(File file) {
if (!file.isDirectory()) {
return false
}
if (excludedProjects.contains(file.name)) {
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)
}