报错:
# 主要
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.
Searched in the following locations:
- file:/C:/Users/***/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2/forge-1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.pom
- file:/C:/Users/***/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2/forge-1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.jar
Required by:
project :
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':mavenDownloader_net.minecraftforge_accesstransformers_8.0.+_fatjar_1'
gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency net.minecraftforge:accesstransformers:8.0.+ because no repositories are defined.
Error getting artifact: net.minecraftforge:forge:1.18.2-40.2.0_mapped_parchment_2022.11.06-1.18.2:null@jar from MinecraftUserRepo
build.gradle
plugins {
// This should be below the net.minecraftforge.gradle plugin
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
settings.gradle
repositories {
maven { url = 'https://maven.parchmentmc.org' } // Add this line
}