From 604dc8aa1bb30d1a9f39150a6ddec9c734e75477 Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 29 Sep 2021 19:18:46 +0200 Subject: [PATCH] Fix how common classes are collected to fix mixins --- Fabric/build.gradle | 6 ++++-- Forge/build.gradle | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Fabric/build.gradle b/Fabric/build.gradle index ed54a18..03d6b59 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -51,9 +51,11 @@ java { withSourcesJar() } +tasks.withType(JavaCompile) { + source(project(":Common").sourceSets.main.allSource) +} + jar { - dependsOn ":Common:compileJava" - from project(":Common").sourceSets.main.output from("LICENSE") { rename { "${it}_${mod_name}" } } diff --git a/Forge/build.gradle b/Forge/build.gradle index b54c537..bd7fc0a 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -75,9 +75,11 @@ dependencies { compileOnly project(":Common") } +tasks.withType(JavaCompile) { + source(project(":Common").sourceSets.main.allSource) +} + jar { - dependsOn ":Common:compileJava" - from project(":Common").sourceSets.main.output manifest { attributes([