1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-12-03 12:58:06 +00:00

Add a slightly cleaner system for excluding deps

Previously we prevented our published full jar depending on any of the
other projects by excluding the whole cc.tweaked jar. However, as Cobalt
also now lives in that group, this meant we were missing the Cobalt
dependency.

Rather than specifying a wildcard, we now exclude the dependencies when
adding them to the project.
This commit is contained in:
Jonathan Coates
2023-12-16 22:35:11 +00:00
parent 95d3b646b2
commit cf6ec8c28f
4 changed files with 44 additions and 13 deletions

View File

@@ -131,9 +131,9 @@ dependencies {
libs.bundles.externalMods.forge.runtime.get().map { runtimeOnly(fg.deobf(it)) }
// Depend on our other projects.
api(commonClasses(project(":forge-api")))
api(clientClasses(project(":forge-api")))
implementation(project(":core"))
api(commonClasses(project(":forge-api"))) { cct.exclude(this) }
clientApi(clientClasses(project(":forge-api"))) { cct.exclude(this) }
implementation(project(":core")) { cct.exclude(this) }
minecraftEmbed(libs.cobalt) {
jarJar.ranged(this, "[${libs.versions.cobalt.asProvider().get()},${libs.versions.cobalt.next.get()})")
@@ -254,7 +254,7 @@ publishing {
artifact(tasks.jarJar)
mavenDependencies {
exclude(dependencies.create("cc.tweaked:"))
cct.configureExcludes(this)
exclude(libs.jei.forge.get())
}
}