Gradle wrapper seems not working as went to use a old gradle wrapper.
!ENTRY org.eclipse.jdt.ls.core 4 0 2024-01-22 01:22:15.654
!MESSAGE Error occured while building workspace. Details:
message: The supplied phased action failed with an exception.
Settings file '/Users/fuyangl/workspace/vim-playground/settings.gradle.kts' line: 8
An exception occurred applying plugin request [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.7.0']
Failed to apply plugin class 'org.gradle.toolchains.foojay.FoojayToolchainsPlugin'.
FoojayToolchainsPlugin needs Gradle version 7.6 or higher; code: 0; resource: /Users/fuyangl/workspace/vim-playground/app;
message: The supplied phased action failed with an exception.
Settings file '/Users/fuyangl/workspace/vim-playground/settings.gradle.kts' line: 8
An exception occurred applying plugin request [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.7.0']
Failed to apply plugin class 'org.gradle.toolchains.foojay.FoojayToolchainsPlugin'.
FoojayToolchainsPlugin needs Gradle version 7.6 or higher; code: 0; resource: /Users/fuyangl/workspace/vim-playground/app;
My gradle/gradlew.wrapper.properties file:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
It seems coc-java cannot work with newer version of gradle wrapper? Or not sure why it does not use the wrapper defined in the graddle wrapper properties file.
The first time I loaded the application it seemed working, then second time I got this error.
I haven't setup any coc config. The project is minimal and generated via gradle init (java project with kts as gradle scripts)
gradle --version
------------------------------------------------------------
Gradle 8.5
------------------------------------------------------------
Build time: 2023-11-29 14:08:57 UTC
Revision: 28aca86a7180baa17117e0e5ba01d8ea9feca598
Kotlin: 1.9.20
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.2 (Oracle Corporation 17.0.2+8-LTS-86)
OS: Mac OS X 14.1.2 aarch64
Thank you :)
Same problem on my MacOS Sonoma if I select Java 21 as target version, but vscode-java works without problem.
It's weird that changing to Java 17 and running git init under the gradle project solves the problem.
Same problem on my MacOS Sonoma if I select Java 21 as target version, but vscode-java works without problem. It's weird that changing to Java 17 and running
git initunder the gradle project solves the problem.
the same