vscode-java: Gradle build failed
I have a gradle project, with sub gradle projects.
The root gradle project I have the following
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath ("com.eriwen:gradle-js-plugin:2.14.1")
classpath ("com.eriwen:gradle-css-plugin:2.14.0")
}
}
and in sub gradle projects, I have the following:
apply plugin: 'js'
apply plugin: 'css'
It worked before build 0.61 (including 0.61). After I upgrade to 0.62, it stopped working.
Error is
Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.3-bin.zip'.
Build file '/home/test/work/git/my-prohect/sub-project/build.gradle' line: 29
A problem occurred evaluating root project 'sub-project'.
Plugin with id 'js' not found.
After I rollback to 0.61, deleted .gradle folder and VScode user workspacgestorage, then the build worked.
Environment
- Operating System: Linux
- JDK version: 1.8
- Visual Studio Code version: 1.45.1
- Java extension version: 0.62
Steps To Reproduce
- [step 1]
- [step 2]
[Please attach a sample project reproducing the error] Please attach logs
Current Result
Build failed
Expected Result
Build should not fail
Additional Informations
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 39 (14 by maintainers)
Commits related to this issue
- Gradle Project hasn't been updated properly - https://github.com/redhat-developer/vscode-java/issues/1714 - https://github.com/redhat-developer/vscode-java/issues/1463 Signed-off-by: Snjezana Peco <... — committed to snjeza/eclipse.jdt.ls by snjeza 4 years ago
- Gradle Project hasn't been updated properly - https://github.com/redhat-developer/vscode-java/issues/1714 - https://github.com/redhat-developer/vscode-java/issues/1463 Signed-off-by: Snjezana Peco <... — committed to snjeza/eclipse.jdt.ls by snjeza 4 years ago
- Gradle Project hasn't been updated properly - https://github.com/redhat-developer/vscode-java/issues/1714 - https://github.com/redhat-developer/vscode-java/issues/1463 Signed-off-by: Snjezana Peco <... — committed to snjeza/eclipse.jdt.ls by snjeza 4 years ago
- Gradle Project hasn't been updated properly (#1617) - https://github.com/redhat-developer/vscode-java/issues/1714 - https://github.com/redhat-developer/vscode-java/issues/1463 Signed-off-by: Snje... — committed to eclipse-jdtls/eclipse.jdt.ls by snjeza 4 years ago
This worked for me. Subprojects are not updated and the time seems to be comparable to version 0.61.0.
Thanks a lot @snjeza.