You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
import groovy.lang.MissingPropertyException
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
// Repositories
|
|
maven("https://maven.deftu.xyz/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/")
|
|
// Snapshots
|
|
maven("https://maven.deftu.xyz/snapshots")
|
|
mavenLocal()
|
|
|
|
// Default repositories
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
}
|
|
|
|
plugins {
|
|
val kotlin = "1.6.21"
|
|
kotlin("jvm") version(kotlin)
|
|
kotlin("plugin.serialization") version(kotlin)
|
|
|
|
val epgt = "1.17.1"
|
|
id("xyz.deftu.gradle.multiversion-root") version(epgt)
|
|
}
|
|
}
|
|
|
|
val projectName: String = extra["mod.name"]?.toString()
|
|
?: throw MissingPropertyException("mod.name has not been set.")
|
|
rootProject.name = projectName
|
|
rootProject.buildFileName = "build.gradle.kts"
|
|
|
|
listOf(
|
|
"1.18.2-fabric",
|
|
"1.19.4-fabric",
|
|
"1.18.2-forge",
|
|
"1.19.4-forge"
|
|
).forEach { version ->
|
|
include(":$version")
|
|
project(":$version").apply {
|
|
projectDir = file("versions/$version")
|
|
buildFileName = "../../version.gradle.kts"
|
|
}
|
|
} |