generated from GreenhouseModding/greenhouse-multiloader-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
33 lines (29 loc) · 985 Bytes
/
settings.gradle.kts
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
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("https://maven.neoforged.net/releases") {
name = "NeoForged"
}
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
maven("https://repo.spongepowered.org/repository/maven-public/") {
name = "Sponge Snapshots"
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
// This should match the folder name of the project, or else IDEA may complain (see https://youtrack.jetbrains.com/issue/IDEA-317606)
rootProject.name = "Greenhouse-Common"
val platforms = setOf("common", "fabric", "neoforge")
val modules = setOf("core", "event", "registry")
modules.forEach { name ->
platforms.forEach { platform ->
include(":${name}-${platform}")
val proj = project(":${name}-${platform}")
proj.projectDir = file("${name}/${platform}")
}
}