Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivy.xml #75

Open
marrowsh opened this issue Mar 30, 2023 · 1 comment
Open

ivy.xml #75

marrowsh opened this issue Mar 30, 2023 · 1 comment

Comments

@marrowsh
Copy link

Hello
I was training build automation from your course but got an error during building which says it can't find ivy.xml , searched couple of websites but still have the same problem. Is there any solution to get rid of this error?
> Could not GET 'https://nodejs.org/dist/v6.9.1/ivy.xml'. Received status code 403 from server: Forbidden

@branislavdrobac
Copy link

branislavdrobac commented Aug 3, 2023

Solution for node is to create different build.gradle. This is how build.gradle should look to avoid ivy.xml issues:

build.gradle

plugins {
//   id "com.moowork.node" version "1.2.0"
   id("com.github.node-gradle.node") version "2.2.0"
}

node {
   npmVersion = "6.9.0"
   download = true
}

task build

build.dependsOn npm_build
npm_build.dependsOn npmInstall

Result:


> [cloud_user@ip-10-0-1-40 cicd-pipeline-train-schedule-gradle]$ ./gradlew build
> Download https://plugins.gradle.org/m2/com/github/node-gradle/node/com.github.node-gradle.node.gradle.plugin/2.2.0/com.github.node-gradle.node.gradle.plugin-2.2.0.pom
> Download https://plugins.gradle.org/m2/com/github/node-gradle/gradle-node-plugin/2.2.0/gradle-node-plugin-2.2.0.pom
> Download https://plugins.gradle.org/m2/com/github/node-gradle/gradle-node-plugin/2.2.0/gradle-node-plugin-2.2.0.jar
> Download https://nodejs.org/dist/v10.14.0/node-v10.14.0-linux-x64.tar.gz
> 
> > Task :npmSetup
> /home/cloud_user/cicd-pipeline-train-schedule-gradle/.gradle/npm/npm-v6.9.0/bin/npm -> /home/cloud_user/cicd-pipeline-train-schedule-gradle/.gradle/npm/npm-v6.9.0/lib/node_modules/npm/bin/npm-cli.js
> /home/cloud_user/cicd-pipeline-train-schedule-gradle/.gradle/npm/npm-v6.9.0/bin/npx -> /home/cloud_user/cicd-pipeline-train-schedule-gradle/.gradle/npm/npm-v6.9.0/lib/node_modules/npm/bin/npx-cli.js
> + [email protected]
> added 426 packages from 800 contributors in 6.413s
> 
> 
> BUILD SUCCESSFUL in 20s
> 3 actionable tasks: 3 executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants