Hello, I am migrating my Java modules + Gradle mod...
# getting-started
l
Hello, I am migrating my Java modules + Gradle modules application to Kotlin. In one of my modules, I am getting all the packages in another module by
ModuleLayer.boot().findModule(moduleName)
. Now when I moved that code over to Kotlin, I noticed that particular module is not included in the ModuleLayer. I understand that Kotlin doesn't have an equivalent of
module-info.java
(I think) so does that mean this way of loading packages not gonna work in Kotlin?
1
v
You just keep the
module-info.java
in Java and
--patch-module
the compiled Kotlin classes into the module on Java compilation.
l
I didn't even think to go that way. Thank you!
👌 1
e