2023-03-15 21:52:13 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-09-11 13:11:32 +00:00
|
|
|
plugins {
|
|
|
|
`java-gradle-plugin`
|
|
|
|
`kotlin-dsl`
|
2023-12-19 18:12:21 +00:00
|
|
|
alias(libs.plugins.gradleVersions)
|
|
|
|
alias(libs.plugins.versionCatalogUpdate)
|
2022-09-11 13:11:32 +00:00
|
|
|
}
|
|
|
|
|
2022-11-06 15:07:13 +00:00
|
|
|
// Duplicated in settings.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")
|
|
|
|
}
|
|
|
|
}
|
2022-11-10 19:32:13 +00:00
|
|
|
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
|
|
name = "Fabric"
|
|
|
|
content {
|
|
|
|
includeGroup("net.fabricmc")
|
|
|
|
}
|
|
|
|
}
|
2022-11-06 15:07:13 +00:00
|
|
|
}
|
|
|
|
|
2022-10-22 16:47:39 +00:00
|
|
|
dependencies {
|
2022-11-06 10:28:49 +00:00
|
|
|
implementation(libs.errorProne.plugin)
|
2022-10-29 17:17:02 +00:00
|
|
|
implementation(libs.kotlin.plugin)
|
2022-10-22 16:47:39 +00:00
|
|
|
implementation(libs.spotless)
|
2022-11-06 15:07:13 +00:00
|
|
|
|
2023-03-15 23:20:07 +00:00
|
|
|
implementation(libs.curseForgeGradle)
|
2022-11-10 19:32:13 +00:00
|
|
|
implementation(libs.fabric.loom)
|
2022-11-06 15:07:13 +00:00
|
|
|
implementation(libs.forgeGradle)
|
2023-10-26 21:06:40 +00:00
|
|
|
implementation(libs.ideaExt)
|
2022-11-06 15:07:13 +00:00
|
|
|
implementation(libs.librarian)
|
2023-03-15 23:20:07 +00:00
|
|
|
implementation(libs.minotaur)
|
2022-11-10 19:32:13 +00:00
|
|
|
implementation(libs.vanillaGradle)
|
2023-10-26 21:06:40 +00:00
|
|
|
implementation(libs.vineflower)
|
2022-10-22 16:47:39 +00:00
|
|
|
}
|
|
|
|
|
2022-09-11 13:11:32 +00:00
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2022-10-22 19:47:47 +00:00
|
|
|
register("cc-tweaked") {
|
|
|
|
id = "cc-tweaked"
|
|
|
|
implementationClass = "cc.tweaked.gradle.CCTweakedPlugin"
|
|
|
|
}
|
|
|
|
|
2022-09-11 13:11:32 +00:00
|
|
|
register("cc-tweaked.illuaminate") {
|
|
|
|
id = "cc-tweaked.illuaminate"
|
|
|
|
implementationClass = "cc.tweaked.gradle.IlluaminatePlugin"
|
|
|
|
}
|
2022-10-22 20:09:08 +00:00
|
|
|
|
|
|
|
register("cc-tweaked.node") {
|
|
|
|
id = "cc-tweaked.node"
|
|
|
|
implementationClass = "cc.tweaked.gradle.NodePlugin"
|
|
|
|
}
|
2022-09-11 13:11:32 +00:00
|
|
|
}
|
|
|
|
}
|
2023-12-19 18:12:21 +00:00
|
|
|
|
|
|
|
versionCatalogUpdate {
|
|
|
|
sortByKey.set(false)
|
|
|
|
keep { keepUnusedLibraries.set(true) }
|
|
|
|
catalogFile.set(file("../gradle/libs.versions.toml"))
|
|
|
|
}
|