e4mc_minecraft/settings.gradle.kts
2023-04-13 01:24:45 +09:00

49 lines
No EOL
1.3 KiB
Text

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.10.3"
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"
}
}