node-gradle / gradle-node-plugin

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

Can't set distBaseUrl #309

Closed florian-renfer closed 4 months ago

florian-renfer commented 4 months ago

Hey there, we're having trouble configuring the distBaseUrl property. No matter which URL we would like to use to fetch the nodejs binaries, it always uses the following URL to the JBoss repo.

Used URL: https://repository.jboss.org/nexus/content/groups/public/org/nodejs/node/20.11.1/node-20.11.1.pom

However the plugin is part of our CI/CD pipeline which constantly fails due to this.

Is there any logical explanation as to why this happens?

We have also looked into the FAQ and existing issues and haven't been able to sort it out.

Our configuration for the plugin:

node { version.set("20.11.1") npmVersion.set("10.2.4") distBaseUrl.set("https://nodejs.org/dist") download.set(true) }

florian-renfer commented 4 months ago

Turns out the matter in which the repositories are defined matters. I did't know this before - now it works.