-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle.kts
65 lines (57 loc) · 1.79 KB
/
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
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
62
63
64
65
import org.gradle.kotlin.dsl.support.listFilesOrdered
pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
google()
maven("https://jitpack.io/")
maven("https://maven.fabricmc.net")
maven("https://maven.architectury.dev/")
maven("https://maven.minecraftforge.net")
maven("https://repo.essential.gg/repository/maven-public")
maven("https://repo.plo.su")
maven("https://repo.plasmoverse.com/snapshots")
}
plugins {
val egtVersion = "0.7.0-SNAPSHOT"
id("gg.essential.defaults") version egtVersion
id("gg.essential.multi-version.root") version egtVersion
}
}
rootProject.name = "slib"
// API
file("api").listFilesOrdered {
return@listFilesOrdered it.isDirectory && it.name != "build"
}.forEach {
include("api:${it.name}")
project(":api:${it.name}").apply {
// rename to solve conflict with "common" project
// for some reason, gradle thinks that ":common" and ":api:common" is the same,
// and when you're trying to use ":api:common" as dependency is "common" project,
// gradle marks it as "Circular dependency"
name = "api-${it.name}"
}
}
// Implementations
include("common")
include("common-integration")
include("spigot")
include("minestom")
include("velocity")
include("bungee")
// Modded
include("versions")
project(":versions").apply {
projectDir = file("versions/")
buildFileName = "root.gradle.kts"
}
file("versions").listFilesOrdered {
return@listFilesOrdered it.isDirectory && it.name.contains("-")
}.forEach {
include("versions:${it.name}")
project(":versions:${it.name}").apply {
projectDir = file("versions/${it.name}")
buildFileName = "../build.gradle.kts"
}
}