Started the project, got this issue, with help from this site, error has been solved. After continueing following tutorial, after changes in gradle.build, examplemod.java, and restarted the project with .\gradlew genIntellijRuns face exactly the same problem.
Error text:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.16.5-36.2.34_mapped_official_20210309-1.16.5.
Searched in the following locations:
- file:/C:/Users/megaa/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_official_20210309-1.16.5/forge-1.16.5-36.2.34_mapped_official_202103
09-1.16.5.pom
- file:/C:/Users/megaa/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_official_20210309-1.16.5/forge-1.16.5-36.2.34_mapped_official_202103
09-1.16.5.jar
Required by:
project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 31s
full log - https://pastebin.com/R2DAm0sj
build.gradle - https://pastebin.com/eh5rtXfP
Command .\gradlew --stop didn't helped.