diff --git a/build.gradle b/build.gradle index 29f491da3..43e96fdf3 100644 --- a/build.gradle +++ b/build.gradle @@ -229,6 +229,20 @@ subprojects { p -> } } + // Tells gradle where to look for other modules + // Why isn't the classpath added to the modules path by default? + if (p == project(":core")) { + compileJava { + inputs.property('moduleName', 'dhApi') + doFirst { + options.compilerArgs = [ + '--module-path', classpath.asPath + ] + classpath = files() + } + } + } + // Run mergeJars when running build build.finalizedBy(mergeJars) assemble.finalizedBy(mergeJars)