build: use composite builds instead of buildSrc

This commit is contained in:
Linnea Gräf
2025-07-06 12:03:13 +02:00
parent 08c81862af
commit 6c3f833362
22 changed files with 429 additions and 64 deletions

View File

@@ -28,14 +28,15 @@ plugins {
alias(libs.plugins.kotlin.plugin.powerassert)
alias(libs.plugins.kotlin.plugin.ksp)
// alias(libs.plugins.loom)
alias(libs.plugins.shadow) apply false
// TODO: use arch loom once they update to 1.8
id("fabric-loom") version "1.10.1"
id("moe.nea.licenseextractificator")
id("firmament.common")
id("firmament.license-management")
alias(libs.plugins.mcAutoTranslations)
}
version = getGitTagInfo(libs.versions.minecraft.get())
group = rootProject.property("maven_group").toString()
java {
withSourcesJar()
@@ -43,6 +44,7 @@ java {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
loom {
mixin.useLegacyMixinAp.set(false)
}
@@ -53,54 +55,6 @@ tasks.withType(KotlinCompile::class) {
}
}
allprojects {
repositories {
mavenCentral()
maven("https://maven.terraformersmc.com/releases/")
maven("https://maven.shedaniel.me")
maven("https://maven.fabricmc.net")
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
maven("https://api.modrinth.com/maven") {
content {
includeGroup("maven.modrinth")
}
}
maven("https://repo.sleeping.town") {
content {
includeGroup("com.unascribed")
}
}
ivy("https://github.com/HotswapProjects/HotswapAgent/releases/download") {
patternLayout {
artifact("[revision]/[artifact]-[revision].[ext]")
}
content {
includeGroup("virtual.github.hotswapagent")
}
metadataSources {
artifact()
}
}
maven("https://server.bbkr.space/artifactory/libs-release")
maven("https://repo.nea.moe/releases")
maven("https://maven.notenoughupdates.org/releases")
maven("https://repo.nea.moe/mirror")
maven("https://jitpack.io/") {
content {
includeGroupByRegex("(com|io)\\.github\\..+")
excludeModule("io.github.cottonmc", "LibGui")
}
}
maven("https://repo.hypixel.net/repository/Hypixel/")
maven("https://maven.azureaaron.net/snapshots")
maven("https://maven.azureaaron.net/releases")
maven("https://www.cursemaven.com")
maven("https://maven.isxander.dev/releases") {
name = "Xander Maven"
}
mavenLocal()
}
}
kotlin {
sourceSets.all {
languageSettings {
@@ -565,5 +519,3 @@ tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
licensing.addExtraLicenseMatchers()