From b144a7a85f6bb39d4081253c26832148bafbe22a Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Mon, 20 May 2024 22:08:16 -0400 Subject: [PATCH] Fix shadowing --- build.gradle.kts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2b54dd1..3dd8771 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -84,15 +84,10 @@ listOf(configurations.runtimeClasspath, configurations.testRuntimeClasspath).for } } -val embed: Configuration by configurations.creating { - description = "Included in output JAR" -} - val shadow = configurations.getByName("shadow") listOf(configurations.implementation).forEach { it.configure { - extendsFrom(embed) extendsFrom(shadow) } } @@ -151,7 +146,7 @@ dependencies { compileOnly(rfg.deobf("curse.maven:opencomputers-223008:4566834")) compileOnly(rfg.deobf("curse.maven:extrautils-225561:2678374")) compileOnly(rfg.deobf("curse.maven:chiselsandbits-231095:2720655")) - embed("com.esotericsoftware:kryo:5.1.1") + shadow("com.esotericsoftware:kryo:5.1.1") val mixinExtras = "io.github.llamalad7:mixinextras-common:0.3.6" shadow(mixinExtras) annotationProcessor(mixinExtras) @@ -176,7 +171,7 @@ val refMap = mixinTmpDir + File.separator + mixinConfigRefMap val mixinSrg = mixinTmpDir + File.separator + "mixins.srg" tasks.withType { - configurations.add(shadow) + configurations = listOf(shadow) relocate("com.llamalad7.mixinextras", "org.embeddedt.vintagefix.mixinextras") mergeServiceFiles() // Very important! } @@ -224,7 +219,6 @@ tasks.named("jar") { } } from(googleimpl.output) - from(provider { configurations["embed"].map { if (it.isDirectory) it else zipTree(it) } }) } val copyJarToBin = tasks.register("copyJarToBin") {