srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
867 stars 210 forks source link

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

Open gopalsai opened 3 years ago

gopalsai commented 3 years ago

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!!!

deepy commented 3 years ago

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

gopalsai commented 3 years ago

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
deepy commented 3 years ago

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