diff --git a/build.gradle b/build.gradle index fba094df..4e22f1b6 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,8 @@ String versionNumber = providers.provider { dependencies { subprojects.forEach { - api(include(project(path: ":$it.name", configuration: "namedElements"))) + api(project(path: ":$it.name", configuration: "namedElements")) + include(project(":$it.name")) } } diff --git a/buildSrc/src/main/java/io/github/fabricators_of_create/porting_lib_build/PortingLibExtension.java b/buildSrc/src/main/java/io/github/fabricators_of_create/porting_lib_build/PortingLibExtension.java index 84ba4167..7c2b56f1 100644 --- a/buildSrc/src/main/java/io/github/fabricators_of_create/porting_lib_build/PortingLibExtension.java +++ b/buildSrc/src/main/java/io/github/fabricators_of_create/porting_lib_build/PortingLibExtension.java @@ -31,7 +31,7 @@ public void addModuleDependency(String name) { "configuration", "namedElements" )); dependencies.add("api", dependency); - dependencies.add("include", dependency); + dependencies.add("include", dependencies.project(Map.of("path", ":" + name))); if (name.equals("mixin_extensions")) { // special case, also an AP