From 6aabe63aa42cbafdbcf5cdd91ee16c2e5658d1ed Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Mon, 15 May 2023 18:09:03 +0300 Subject: Add workaround for FabricMC/fabric-loom#890 --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index e6d9f0e..56ada8b 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,15 @@ loom { } } +// Work around https://github.com/FabricMC/fabric-loom/issues/890. +afterEvaluate { + for (def config : [configurations.apiElements, configurations.runtimeElements]) { + def parents = new HashSet<>(config.extendsFrom) + parents.removeIf { it.name.startsWith 'modTestMod' } + config.extendsFrom = parents + } +} + repositories { maven { url "https://server.bbkr.space/artifactory/libs-release" -- cgit