-
Notifications
You must be signed in to change notification settings - Fork 19
/
settings.gradle.kts
69 lines (59 loc) · 1.9 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
66
67
68
pluginManagement {
repositories {
maven(url = "https://repo.stellardrift.ca/repository/internal/") {
name = "stellardriftReleases"
mavenContent { releasesOnly() }
}
maven(url = "https://repo.stellardrift.ca/repository/snapshots/") {
name = "stellardriftSnapshots"
mavenContent { snapshotsOnly() }
}
mavenCentral()
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net")
}
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
id("fabric-loom") version "1.9.2"
id("net.neoforged.moddev.repositories") version "2.0.52-beta"
}
rootProject.name = "adventure-platform-mod-parent"
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "ossSnapshots"
mavenContent { snapshotsOnly() }
}
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "s01ossSnapshots"
mavenContent { snapshotsOnly() }
}
maven(url = "https://maven.parchmentmc.org/") {
name = "parchment"
}
maven(url= "https://maven.neoforged.net/") {
name = "neoforge"
}
}
}
fun includeAndRename(path: String, name: String? = null) {
include(path)
findProject(":$path")?.name = "adventure-platform-${name ?: path.replace(":", "-")}"
}
// Common
includeAndRename("mod-shared")
include(":test-resources")
findProject(":test-resources")?.projectDir = file("mod-shared/test-resources")
// Fabric
includeAndRename("fabric")
includeAndRename("adventure-platform-fabric:mod-shared-repack", "mod-shared-fabric-repack")
// NeoForge
includeAndRename("neoforge")
includeAndRename("adventure-platform-neoforge:tester", "neoforge-tester")
includeAndRename("adventure-platform-neoforge:services", "neoforge-services")