Skip to content

Instantly share code, notes, and snippets.

@Xalcon
Last active November 7, 2025 19:26
Show Gist options
  • Select an option

  • Save Xalcon/b06d127646786298aa772251c9e8cfa6 to your computer and use it in GitHub Desktop.

Select an option

Save Xalcon/b06d127646786298aa772251c9e8cfa6 to your computer and use it in GitHub Desktop.
Could not find net.fabricmc.unpick:unpick

Issue

When attempting to build/refresh gradle when building a fabric project, the process will fail with the error message

could not find "net.fabricmc.unpick"

Analysis

The package is hosted on the fabric maven, but often its restricted to using the following definition

// File: settings.gradle
pluginManagement {  
    repositories {  
	    ... snip ...
        exclusiveContent {  
            forRepository {  
                maven {  
                    name = 'Fabric'  
                    url = uri('https://maven.fabricmc.net')  
                }
            }
            filter {  
                includeGroup('net.fabricmc')  
                includeGroup('fabric-loom')  
            }
        }
    }
}

The line includeGroup('net.frabicmc') is the culprit. "includeGroup" does not recursively include packages and because net.fabricmc.unpick:unpick is not defined in the filter, gradle will not try to find any other dependencies on the fabric maven.

Solution

Change the line includeGroup('net.fabricmc') to includeGroupAndSubGroups('net.fabricmc').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment