kotlinjarminecraft-fabric

Can't create any .jar on IntelliJ Fabric Minecraft modding


So lately I've been trying to make a little custom mod for Minecraft 1.21.1 with Fabric Kotlin and after checking everything working completely I wanted to create the .jar to share with a friend but whenever I try to build the artifact, it says the process is done but it doesn't create any new file or if it does I can't seem to find it, I've attached pictures of the settings on Artifact creation and the console to see if anyone can seem to find the error, any ideas would be greatly appreciated

Should also mention it doesn't even create the artifacts folder

Console final result

enter image description here

enter image description here


Solution

  • As a temporary solution you can build your mod with cli command. Here's instructions:

    1. open terminal page in IDEA (you will in the root directory of your project)

    2. run gradlew build(windows) or ./gradlew build(linux/macos)

    then you should get 2 .jar file in <your project>/build/libs, choose the one without -source.

    Hope it can be of help