lilmods / kotlin-minecraft-mod-template

A Kotlin Minecraft mod template. Supports both forge & fabric. Includes github CI & CD. Includes cloth config / mod menu. Uses gradle kts and is multi module
The Unlicense
3 stars 0 forks source link

[CI] Forge build workflow crashes - Error getting artifact: net.minecraft:joined #1

Closed lilgallon closed 1 year ago

lilgallon commented 1 year ago

Example: https://github.com/lilmods/kotlin-minecraft-mod-template/actions/runs/5109527891/jobs/9185295213

Error:

Could not create an instance of type org.gradle.jvm.toolchain.internal.DefaultToolchainSpec.
Error getting artifact: net.minecraft:joined:1.19.4-20230314.122934:srg@jar from  MCPRepo
org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type org.gradle.jvm.toolchain.internal.DefaultToolchainSpec.

Latest ForgeGradle version: 6.0.4

However, it works locally:

It is probably related to ForgeGradle 6. If the issue is blocking for you, downgradle to gradle 7.3 and ForgeGradle 5.1+ and Fabric Loom 1.0 (1.2 depends on gradle 8)

lilgallon commented 1 year ago

It's fixed. It was an issue with gradle daemon (even though it should work with it).