e4mc_minecraft/settings.gradle.kts

49 lines
1.3 KiB
Text
Raw Normal View History

2023-04-12 19:14:44 +03:00
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)
2023-06-06 10:58:38 +03:00
val epgt = "1.15.1"
2023-04-12 19:14:44 +03:00
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"
}
}