-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle.kts
53 lines (44 loc) · 1.2 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
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS")
pluginManagement {
repositories {
gradlePluginPortal()
}
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.github.monosoul.yadegrap") version "1.0.0"
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/") {
name = "PaperMC"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "Sonatype OSS Snapshots"
}
}
}
rootProject.name = "Orion"
setupLibraryProject("anvil");
setupOrionSubproject("common")
setupOrionSubproject("server")
setupOrionSubproject("proxy")
setupOrionSubproject("api")
include("test-plugin")
include("test-module")
fun setupOrionSubproject(name: String) {
setupSubproject("orion-$name") {
projectDir = file(name)
}
}
fun setupLibraryProject(name: String) {
setupSubproject("orion-lib-$name") {
projectDir = file("lib/$name");
}
}
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
include(name)
project(":$name").apply(block)
}