mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 20:20:30 +00:00
8d2e150f05
This fixes several issues I had with consuming multi-loader CC:T in various upstream mods. - Include /all/ sources in the Forge/Fabric jar. Before it was just the common classes, and not the core or API. - Use some Gradle magic to remove superfluous dependencies from the POM file. Also make sure Cobalt and Netty are present as dependencies. - Start using minimize() in our shadow jar config again.
71 lines
1.6 KiB
Plaintext
71 lines
1.6 KiB
Plaintext
plugins {
|
|
`java-gradle-plugin`
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
// 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")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
name = "Fabric"
|
|
content {
|
|
includeGroup("net.fabricmc")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.errorProne.plugin)
|
|
implementation(libs.kotlin.plugin)
|
|
implementation(libs.spotless)
|
|
|
|
implementation(libs.fabric.loom)
|
|
implementation(libs.forgeGradle)
|
|
implementation(libs.librarian)
|
|
implementation(libs.quiltflower)
|
|
implementation(libs.vanillaGradle)
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|