mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-06 00:22:58 +00:00
- Update to Loom 1.12. This requires Java 21, so we now build with Java 21, but targetting 17. The new "-release" flag does make this much easier, so hopefully shouldn't cause too many issues. - Bump versions of a lot of other things. - Fix various errorprone/checkstyle grumbles.
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
plugins {
|
|
`java-gradle-plugin`
|
|
`kotlin-dsl`
|
|
alias(libs.plugins.gradleVersions)
|
|
alias(libs.plugins.versionCatalogUpdate)
|
|
}
|
|
|
|
// Duplicated in settings.gradle.kts
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
|
|
maven("https://maven.neoforged.net") {
|
|
name = "NeoForge"
|
|
content {
|
|
includeGroup("net.neoforged")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
name = "Fabric"
|
|
content {
|
|
includeGroup("net.fabricmc")
|
|
includeGroup("net.fabricmc.unpick")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.squiddev.cc") {
|
|
name = "SquidDev"
|
|
content {
|
|
includeGroup("cc.tweaked.vanilla-extract")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.errorProne.plugin)
|
|
implementation(libs.kotlin.plugin)
|
|
implementation(libs.spotless)
|
|
|
|
implementation(libs.fabric.loom)
|
|
implementation(libs.ideaExt)
|
|
implementation(libs.minotaur)
|
|
implementation(libs.modDevGradle)
|
|
implementation(libs.vanillaExtract)
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
register("cc-tweaked") {
|
|
id = "cc-tweaked"
|
|
implementationClass = "cc.tweaked.gradle.CCTweakedPlugin"
|
|
}
|
|
|
|
register("cc-tweaked.illuaminate") {
|
|
id = "cc-tweaked.illuaminate"
|
|
implementationClass = "cc.tweaked.gradle.IlluaminatePlugin"
|
|
}
|
|
|
|
register("cc-tweaked.node") {
|
|
id = "cc-tweaked.node"
|
|
implementationClass = "cc.tweaked.gradle.NodePlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
versionCatalogUpdate {
|
|
sortByKey = false
|
|
keep { keepUnusedVersions = true }
|
|
catalogFile = file("../gradle/libs.versions.toml")
|
|
}
|