Jump to content

Gradle cannot build in IntelliJ due to it not finding the Forge files (apparently)


EinSteini

Recommended Posts

Hi there!

I've recently been starting out with mod programming in Minecraft. As a version i chose 1.16.5 and downloaded the appropriate Forge MDK. I followed the wiki and ran

gradlew genIntellijRuns

 

After that I tried to start the game and got the following error message in in the "Build Output" tab:

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.minecraftforge:forge:1.16.5-36.1.4_mapped_official_1.16.5.
     Searched in the following locations:
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.module
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - file:/C:/Users/nbste/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
       - file:/C:/Users/nbste/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - https://libraries.minecraft.net/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I unfortunately do not understand how to transfer the solutions from the "Possible Solutions" link to my own problem. It is also noticeable that in the ExampleMod class minecraft, minecraftforge.common, minecraftforge.event, minecraftforge.eventbus, minecraftforge.fml and apache.logging aren't found and therefore are red.

I hope I provided enough information for you to be able to give me a hint or to give me a solution to the problem. If anything is still needing for proper understanding, I will be determined to provide it.

Thanks in advance,

EinSteini

Edited by EinSteini
spelling
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.