forked from isXander/Shotify
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
52 lines (45 loc) · 1.43 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
import groovy.lang.MissingPropertyException
pluginManagement {
repositories {
// Snapshots
maven("https://maven.deftu.dev/snapshots")
maven("https://s01.oss.sonatype.org/content/groups/public/")
mavenLocal()
// Repositories
maven("https://maven.deftu.dev/releases")
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://server.bbkr.space/artifactory/libs-release/")
maven("https://jitpack.io/")
// Default repositories
gradlePluginPortal()
mavenCentral()
}
plugins {
val kotlin = "2.0.0"
kotlin("jvm") version(kotlin)
val dgt = "1.28.1"
id("dev.deftu.gradle.multiversion-root") version(dgt)
}
}
val projectName: String = extra["mod.name"]?.toString() ?: throw MissingPropertyException("mod.name has not been set.")
rootProject.name = projectName
rootProject.buildFileName = "root.gradle.kts"
listOf(
"1.18.2-fabric",
"1.19.2-fabric",
"1.19.4-fabric",
"1.20.1-fabric",
"1.20.2-fabric",
"1.20.4-fabric",
"1.20.6-fabric",
"1.21-fabric"
).forEach { version ->
include(":$version")
project(":$version").apply {
projectDir = file("versions/$version")
buildFileName = "../../build.gradle.kts"
}
}