From 7dadff421935f19bdb5b0909ed406e5afe9f5a12 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 2 Apr 2022 23:08:33 -0500 Subject: [PATCH] automatically copy lod.accesswidener when building By default the fabric build folder needs this file to run, but it wasn't being copied over, now it should be. --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 52f3fda27..40f725c22 100644 --- a/build.gradle +++ b/build.gradle @@ -203,6 +203,18 @@ allprojects { p -> runClient.enabled = false runServer.enabled = false } + + + // this is necessary for running the fabric build + if (p == project(":common")) { + println "Coping [common/src/main/resources/lod.accesswidner] to [fabric/build/resources/main]." + + copy { + from "$rootProject.rootDir/common/src/main/resources" + into "$rootProject.rootDir/fabric/build/resources/main" + include "*.accesswidener" + } + } }