mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-10 10:10:22 +01:00
cb36769d9d
Changed: > Remove duplicated repositories > Removed paper run > Bumped minotaur > Bumped ktor > Cleaned up plugin.yml > Cleaned up build script > Changed to us.crazycrew Added: > Issue/Bug Templates
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
@file:Suppress("UnstableApiUsage")
|
|
|
|
dependencyResolutionManagement {
|
|
includeBuild("build-logic")
|
|
|
|
versionCatalogs {
|
|
create("settings") {
|
|
from(files("gradle/settings.versions.toml"))
|
|
}
|
|
}
|
|
|
|
repositories.gradlePluginPortal()
|
|
}
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
val lowerCase = rootProject.name.lowercase()
|
|
|
|
include("core")
|
|
project(":core").name = "$lowerCase-core"
|
|
|
|
listOf("spigot").forEach(::includePlatform)
|
|
|
|
fun includeProject(name: String) {
|
|
include(name) {
|
|
this.name = "$lowerCase-$name"
|
|
}
|
|
}
|
|
|
|
fun includePlatform(name: String) {
|
|
include(name) {
|
|
this.name = "$lowerCase-platform-$name"
|
|
this.projectDir = file("platforms/$name")
|
|
}
|
|
}
|
|
|
|
fun includeModule(name: String) {
|
|
include(name) {
|
|
this.name = "$lowerCase-module-$name"
|
|
this.projectDir = file("modules/$name")
|
|
}
|
|
}
|
|
|
|
fun includePlatformModule(name: String, platform: String) {
|
|
include(name) {
|
|
this.name = "$lowerCase-module-$platform-$name"
|
|
this.projectDir = file("modules/$platform/$name")
|
|
}
|
|
}
|
|
|
|
fun include(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
include(name)
|
|
project(":$name").apply(block)
|
|
} |