mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +00:00
6b83c63991
I didn't make a new years resolution to stop writing build tooling, but maybe I should have. This replaces our use of VanillaGradle with a new project, VanillaExtract. This offers a couple of useful features for multi-loader dev, including Parchment and Unpick support, both of which we now use in CC:T.
78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
pluginManagement {
|
|
// Duplicated in buildSrc/build.gradle.kts
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
|
|
maven("https://maven.minecraftforge.net") {
|
|
name = "Forge"
|
|
content {
|
|
includeGroup("net.minecraftforge")
|
|
includeGroup("net.minecraftforge.gradle")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.parchmentmc.org") {
|
|
name = "Librarian"
|
|
content {
|
|
includeGroupByRegex("^org\\.parchmentmc.*")
|
|
}
|
|
}
|
|
|
|
maven("https://repo.spongepowered.org/repository/maven-public/") {
|
|
name = "Sponge"
|
|
content {
|
|
includeGroup("org.spongepowered")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
name = "Fabric"
|
|
content {
|
|
includeGroup("fabric-loom")
|
|
includeGroup("net.fabricmc")
|
|
}
|
|
}
|
|
|
|
maven("https://squiddev.cc/maven") {
|
|
name = "SquidDev"
|
|
content {
|
|
includeGroup("cc.tweaked.vanilla-extract")
|
|
}
|
|
}
|
|
}
|
|
|
|
resolutionStrategy {
|
|
eachPlugin {
|
|
if (requested.id.id == "org.spongepowered.mixin") {
|
|
useModule("org.spongepowered:mixingradle:${requested.version}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
val mcVersion: String by settings
|
|
rootProject.name = "cc-tweaked-$mcVersion"
|
|
|
|
include(":core-api")
|
|
include(":core")
|
|
|
|
include(":common-api")
|
|
include(":common")
|
|
include(":fabric-api")
|
|
include(":fabric")
|
|
include(":forge-api")
|
|
include(":forge")
|
|
|
|
include(":lints")
|
|
include(":standalone")
|
|
include(":web")
|
|
|
|
for (project in rootProject.children) {
|
|
project.projectDir = file("projects/${project.name}")
|
|
}
|