janvladimirmostert
03/20/2022, 2:30 PMmodule-info.java
to my src/main/kotlin
directory, any examples of how the gradle config should be done to make the module-info.java
be included?
I've tried adding module-info.java
to src/main/java
but then it doesn't find the kotlin classesephemient
03/20/2022, 2:39 PMjanvladimirmostert
03/20/2022, 9:21 PMRob Elliot
03/26/2022, 9:22 AMmodule-info.java
is in src/main/java
rather than src/main/kotlin
- is there a "good" way to avoid having two source dirs?
This works:
tasks {
val compileKotlin: KotlinCompile by tasks
val compileJava: JavaCompile by tasks
compileJava.source = compileKotlin.source
compileKotlin.destinationDirectory.set(compileJava.destinationDirectory.get())
}
but my recollection is that Gradle people consider it a grievous sin to have tasks sharing inputs and outputs.janvladimirmostert
03/26/2022, 9:24 AMjanvladimirmostert
03/26/2022, 9:25 AM