https://kotlinlang.org logo
Title
g

gaetan

07/19/2017, 6:14 PM
Is there a reason for having by default the kotlin2js plugin generating js code in build/classes/java/main directory? The java directory is a little bit weird no?
b

bashor

07/19/2017, 6:38 PM
cc @h0tk3y
h

h0tk3y

07/19/2017, 7:09 PM
@gaetan This behavior is caused by the two facts: 1) Kotlin Gradle plugin uses the Java classes directory for Kotlin output by default 2) Gradle moved to separate classes directories for each language in 4.0, and the directory path change to
build/classes/java/main
(it used to be just
build/classes/main
) The whole situation is a known issue and has been fixed for Kotlin 1.1.4, where the default directory becomes
build/classes/kotlin/main
https://youtrack.jetbrains.com/issue/KT-18495
👍 2