Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Version 0.7 of the gradle plugin breaks the com.moowork.node plugin #1612

@SalomonBrys

Description

@SalomonBrys

The plugin com.moowork.node is the plugin that is used in the Kotlin Javascript examples to run Kotlin/JS unit tests.

However, the mere fact to apply the konan plugin in a different module makes the node plugin fail.

Moere specifically, it fails to download NodeJS:

$ ./gradlew test
Starting a Gradle Daemon, 5 stopped Daemons could not be reused, use --status for details
> Task :js:nodeSetup FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':js:nodeSetup'.
> Could not resolve all files for configuration ':js:detachedConfiguration1'.
   > Could not find org.nodejs:node:6.9.1.
     Searched in the following locations:
         https://nodejs.org/dist/v6.9.1/node.module
         https://nodejs.org/dist/v6.9.1/ivy.xml
     Required by:
         project :js

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s

Here is a test project that demonstrates the issue.
Just run ./gradlew test

Note that this only happens if you don't have the NodeJS archive downloaded in cache, so be sure to remove it from Gradle cache before running the test:

rm -rf ~/.gradle/caches/modules-2/files-2.1/org.nodejs/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions