Description
Build fails when using the project's built-in Gradle Wrapper, which defaults to Gradle 9.4.1, with the following error:
Class org.gradle.jvm.toolchain.JvmVendorSpec does not have member field 'org.gradle.jvm.toolchain.JvmVendorSpec IBM_SEMERU'
Steps to Reproduce
- Clone the repository locally
- Run any build command directly (e.g.
./gradlew :composeApp:wasmJsBrowserDevelopmentRun), the command will automatically download and use Gradle 9.4.1
- Build fails with the error mentioned above
Root Cause
The project uses version 0.10.0 of the org.gradle.toolchains.foojay-resolver-convention plugin, which is incompatible with Gradle 9.x. This old version references the IBM_SEMERU constant that has been removed in Gradle 9.x.
Solution
Upgrade the plugin to version 1.0.0 to resolve the issue. Modify it in settings.gradle.kts:
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
Description
Build fails when using the project's built-in Gradle Wrapper, which defaults to Gradle 9.4.1, with the following error:
Steps to Reproduce
./gradlew :composeApp:wasmJsBrowserDevelopmentRun), the command will automatically download and use Gradle 9.4.1Root Cause
The project uses version 0.10.0 of the
org.gradle.toolchains.foojay-resolver-conventionplugin, which is incompatible with Gradle 9.x. This old version references theIBM_SEMERUconstant that has been removed in Gradle 9.x.Solution
Upgrade the plugin to version 1.0.0 to resolve the issue. Modify it in
settings.gradle.kts:plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" }