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"
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.
Change the line includeGroup('net.fabricmc') to includeGroupAndSubGroups('net.fabricmc').