-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
61 lines (54 loc) · 1.38 KB
/
settings.gradle
File metadata and controls
61 lines (54 loc) · 1.38 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
pluginManagement {
repositories {
gradlePluginPortal()
maven {
name = "Forge"
url = "https://maven.minecraftforge.net/"
}
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
maven {
name = "Sponge Snapshots"
url = "https://repo.spongepowered.org/repository/maven-public/"
}
maven {
name = "Parchment MC"
url = "https://maven.parchmentmc.org"
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
}
rootProject.name = "Infamous-Libraries"
include("core")
include("common")
include("fabric")
include("forge")
include("modules")
for (File file in getFile("modules").listFiles()) {
if (isModuleDir(file)) {
String name = file.name
include("modules:"+name)
ProjectDescriptor project = project(":modules:" + name)
project.projectDir = getFile("modules/" + name)
}
}
def getFile(String name) {
return file(name)
}
static def isModuleDir(File file) {
if (file.isDirectory()) {
File[] files = file.listFiles()
if (files != null) {
for (File subFile in files) {
if (subFile.name == "build.gradle") {
return true
}
}
}
}
return false
}