Open napperley opened 6 years ago
Very important that this issue is resolved since the official Gradle Kotlin DSL is nearing a stable 1.0 release, and the Gradle node plugin is one of the most regularly used Gradle plugins. The Gradle team are focusing their efforts on ensuring that the Kotlin DSL works with all major Gradle plugins.
Anyone resolved this?
After doing a Gradle refresh in IntelliJ a build error appears (NoClassDefFoundError with NpmTask):
This error occurs during the Apply script build.gradle.kts phase (in Configure project :js). The other two phases (Notify beforeEvaluate listeners of :js and Notify afterEvaluate listeners of :js) are ok (no errors). No errors are shown in the IntelliJ code editor for the plugins block:
Here are the contents of build_logic.kt (in buildSrc):
Appears as though the node plugin is applied without any issues (in IntelliJ the node tasks show up in the Gradle window: nodeSetup, npmInstall, and npmSetup), however the class files aren't found when the NpmTask is reached. Using Gradle 4.9 (Kotlin DSL is built-in), Kotlin 1.2.60, Node 1.2.0 (Gradle plugin), Karma 1.4.4 (Gradle plugin), and OpenJDK Zulu 10.1+11 (build 10+46).