gaetan
07/19/2017, 4:36 PMsubprojects {
apply plugin: 'kotlin2js'
dependencies {
testCompile project(":tests")
compile "org.jetbrains.kotlin:kotlin-stdlib-js"
}
repositories {
jcenter()
}
}
Launching a gradle clean build
from the root with gradle 4.0.1 or 3.5.1 is working.
But
when I launch a Gradle Refresh project from idea and start a compilation from idea I have the following error:
Information:19/07/2017 18:29 - Compilation completed with 1 error and 0 warnings in 2s 275ms
Error:Kotlin: [Internal Error] org.jetbrains.jps.incremental.ProjectBuildException: No output directory found for Module 'format_test' production
When I look at the modules in idea, for every gradle project, I have 3 modules : a “root” module, a main module and a test module. Each main module has a specific output path but no test output path. Each test module has a specific Test output path but no Output path.