module-info.java

This commit is contained in:
Ran
2022-08-12 11:08:31 +06:00
parent a4a23121c8
commit 5e6080da78
+14
View File
@@ -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)