MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
507 stars 436 forks source link

Latest Git version fails to build with GradleUtils version 2.3.0+ #938

Closed natrow closed 6 months ago

natrow commented 6 months ago

The latest version of the plugin fails to compile with the latest versions of the GradleUtils plugin (2.3.0+). It appears to be caused by a breaking change in the changelog API.

Full build error:

[nathan@arch-thinkpad ForgeGradle]$ ./gradlew check
Starting a Gradle Daemon, 1 busy and 8 stopped Daemons could not be reused, use --status for details

> Configure project :
Version: 0.0.0 Java: 17.0.9 JVM: 17.0.9+8(N/A) Arch: amd64

FAILURE: Build failed with an exception.

* Where:
Build file '/home/nathan/Programming/Java/ForgeGradle/build.gradle' line: 14

* What went wrong:
A problem occurred evaluating root project 'ForgeGradle'.
> Could not find method fromTag() for arguments [6.0] on extension 'changelog' of type net.minecraftforge.gradleutils.changelog.ChangelogExtension.

* 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.

BUILD FAILED in 18s

Included here: https://github.com/MinecraftForge/ForgeGradle/blob/FG_6.0/build.gradle#L6

LexManos commented 6 months ago

Ya its due to having an unpinned GU dep. That was fixe in https://github.com/MinecraftForge/ForgeGradle/commit/589654a4434461d927921dfddbfba157294eba54