Using the same package name for mixed JVM web application (Java + Kotlin)causes Type exception

When using Java and Kotlin together, using the same package name (but different folders src/main/java or src/main/kotlin), compileJava throws error for the Kotlin compiled classes.

if we change the package name, it works perfectly.

Is it normal or any known work around available?

I am using gradle 4.9 :slight_smile:

Please let me know if you need any other information thanks

Hi,

Have you found a fix for this?

I am facing the same issue. I have two packages with same name but in different folders in Gradle. One package in same project and another in a dependency jar file.

Please let me know of there is a way to fix this instead of renaming?