From bf83bbb5ef609ea3ad5d710b31b82468ef14b3e6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Feb 2021 00:50:35 +0200 Subject: [PATCH] Gradle pls --- build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b309d85c..b5e7b36f 100644 --- a/build.gradle +++ b/build.gradle @@ -84,8 +84,11 @@ dependencies { transitive = false } - modCompileOnly project(":canvas-compat") { - transitive = false + // Fix circular error when gradle tries to build this project as a pre-requisite to :canvas-compat + // Build will fail if the sub-project isn't built first though, + // so make sure to run gradlew :canvas-compat:build before doing gradlew build + if (file("./canvas-compat/build/libs/${project(':canvas-compat').jar.archiveName}").exists()) { + modCompileOnly project(":canvas-compat") } afterEvaluate {