55 lines
1.3 KiB
Kotlin
55 lines
1.3 KiB
Kotlin
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
|
|
mavenContent { snapshotsOnly() }
|
|
}
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.spongepowered.org/repository/maven-public/")
|
|
maven("https://repo.jpenilla.xyz/snapshots/") {
|
|
mavenContent { snapshotsOnly() }
|
|
}
|
|
}
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
}
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
maven("https://maven.fabricmc.net/")
|
|
maven("https://maven.quiltmc.org/repository/release/")
|
|
maven("https://repo.jpenilla.xyz/snapshots/")
|
|
}
|
|
includeBuild("build-logic")
|
|
}
|
|
|
|
plugins {
|
|
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.1"
|
|
id("quiet-fabric-loom") version "0.12-SNAPSHOT"
|
|
}
|
|
|
|
rootProject.name = "MiniMOTD"
|
|
|
|
fun setup(name: String, dir: String) {
|
|
include(name)
|
|
project(":$name").projectDir = file(dir)
|
|
}
|
|
|
|
fun platform(name: String) = setup("minimotd-$name", "platform/$name")
|
|
fun dist(name: String) = setup("minimotd-$name", "dist/$name")
|
|
|
|
setup("minimotd-common", "common")
|
|
|
|
sequenceOf(
|
|
"bukkit",
|
|
"sponge8",
|
|
"sponge7",
|
|
"bungeecord",
|
|
"velocity",
|
|
"fabric",
|
|
).forEach(::platform)
|
|
|
|
dist("bukkit-bungeecord")
|