gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

Plugin with id 'com.moowork.node' not found.

Open gopalsai opened this issue 5 years ago • 3 comments

  • What went wrong: A problem occurred evaluating script.

Plugin with id 'com.moowork.node' not found.

  • 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 642ms

Kindly, please help!!!!! we are trying to upgrade our Gradle version from 2.3 to 6.7 along with upgrading the plugin version as well and we are getting this error....

Many Thankssss, for your great work!!!

gopalsai avatar Oct 22 '20 02:10 gopalsai

Unfortunately this plugin isn't compatible with gradle 6, you can see https://github.com/srs/gradle-node-plugin/issues/315 for the full history.

But there's a maintained fork of this plugin at https://github.com/node-gradle/gradle-node-plugin

deepy avatar Oct 22 '20 07:10 deepy

Unfortunately this plugin isn't compatible with gradle 6, you can see #315 for the full history.

But there's a maintained fork of this plugin at https://github.com/node-gradle/gradle-node-plugin

Thank you, deepy....

I tried this version it self and Gradle didn't throw any errors. However, there is a problem with finding the version. I dont understand why its looking for a file named "- https://nodejs.org/dist/v4.9.1/ivy.xml" obviously it won't be there. How do I overcome this problem?

Thank you!!!

Screen Shot 2020-10-28 at 7 58 16 PM

gopalsai avatar Oct 28 '20 23:10 gopalsai

The way that the plugin works is that it's using an IvyRepository to fetch a file, now the problem you're seeing is that in Gradle 5 and later you need to tell it that it's not really an ivy repository and that it shouldn't look for ivy.xml

You can see the actual change here: https://github.com/node-gradle/gradle-node-plugin/commit/9368ad44c369a92a9829f179f485957f0a84d902

deepy avatar Oct 29 '20 12:10 deepy