Skip to content

Wrong gradle version autoinstalls constantly #4165

Open

Description

@VillainsRule

This program installs gradle 8.11.1, instead of gradle 8.12.1.

gradle/wrapper/gradle-wrapper.properties has "distributionUrl=https://services.gradle.org/distributions/gradle-8.12.1-bin.zip". gradle 8.12.1 is already installed.

8.11.1 is autoinstalled alongside 8.12.1 and then used for resolution, so build.gradle errors:

The supplied phased action failed with an exception.
A problem occurred configuring root project 'AntiRank'.
Could not resolve all artifacts for configuration 'classpath'.
Could not resolve net.fabricmc:fabric-loom:1.10-SNAPSHOT.
Required by:
    root project : > fabric-loom:fabric-loom.gradle.plugin:1.10-SNAPSHOT:20250323.164030-5
Plugin net.fabricmc:fabric-loom:1.10-SNAPSHOT:20250323.164030-5 requires at least Gradle 8.12. This build uses Gradle 8.11.1.

The settings are also not working.

Image

Activity

  1. moni-dips commented on Mar 27, 2026

    @moni-dips

    I have these settings in my workspace:

    {
            "java.import.gradle.wrapper.enabled": false,
            "java.import.gradle.version": "9.4.1",
    }

    but they are ignored, so the extension fails:

    [Error - 11:49:50 AM] 27. mars 2026, 11:49:50 Initialization failed 
    org.gradle.tooling.BuildException: Could not fetch model of type 'GradleProject' using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.9-bin.zip'.
    ...
    Caused by: org.gradle.internal.exceptions.LocationAwareException: Build file 'C:\Users\moni\source\repos\DIPS.FOP\src\fop-worker\build.gradle.kts' line: 1
    An exception occurred applying plugin request [id: 'com.gradleup.shadow', version: '9.2.2']
    ...
    Caused by: org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.gradleup.shadow', version: '9.2.2']
    	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.exceptionOccurred(DefaultPluginRequestApplicator.java:179)
    	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.access$400(DefaultPluginRequestApplicator.java:52)
    	at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator$ApplyAction.apply(DefaultPluginRequestApplicator.java:160)
    	... 167 more
    Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin class 'com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin'.
    	at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:176)
    ...
    Caused by: org.gradle.api.GradleException: This version of Shadow supports Gradle 8.11+ only. Please upgrade.
    	at com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.apply(ShadowBasePlugin.kt:21)
    	at com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.apply(ShadowBasePlugin.kt:17)
    ...
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions