Could not resolve all files for configuration ':_:detachedConfiguration1' when using node plugin on gradle kotlin dsl

6.5k views Asked by At

I'm trying to integrate Java and npm Builds Using Gradle Kotlin DSL. I was going through the example dzone article and github example code.

I'm in npm-app project folder and running the command gradle npm_run_build.

$ gradle npm_run_build

Task :npm-app:nodeSetup FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':npm-app:nodeSetup'.

    Could not resolve all files for configuration ':npm-app:detachedConfiguration1'. Could not find org.nodejs:node:10.14.1. Searched in the following locations: - https://nodejs.org/dist/v10.14.1/ivy.xml Required by: project :npm-app BUILD FAILED in 810ms 1 actionable task: 1 executed

How can I fix this error?

1

There are 1 answers

0
Nick Krul On

try switching your node plugin:

plugins {
  id "com.github.node-gradle.node" version "1.5.3"
}