From 73596a244e038aa6796f6dc3dfd342153a08c60b Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Mon, 29 Aug 2022 17:39:43 -0400 Subject: [PATCH] ok I actually 100% for sure got gradle faster now --- Forge/build.gradle | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Forge/build.gradle b/Forge/build.gradle index 68d4a3c4..eb2bc604 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -183,13 +183,15 @@ sourceSets { // > Gradle task execution avoidance breaks it that way // > At one point i got it to work reliably bu forcing some specific task to always run i just don't remember the syntax and which task it was // > It might have been compileJava -jar { - println "Forcing re-compile of Java to include refmap" - tasks.withType(JavaCompile) { - outputs.upToDateWhen { false } - } - compileKotlin { - outputs.upToDateWhen { false } +build { + doFirst { + println "Forcing re-compile of Java to include refmap" + tasks.withType(JavaCompile) { + outputs.upToDateWhen { false } + } + compileKotlin { + outputs.upToDateWhen { false } + } } }