Skip to content

Conversation

@Technici4n
Copy link
Member

@Technici4n Technici4n commented Oct 1, 2025

When targeting Minecraft 1.21.9+, adding any dependency to additionalRuntimeClasspath or the <run name>AdditionalRuntimeClasspath configurations will throw a helpful exception:

A problem occurred evaluating root project 'testproject'.
> Tried to add a dependency to configuration configuration ':additionalRuntimeClasspath', but there is no additional classpath anymore for Minecraft 1.21.9. Add the dependency to a standard configuration such as implementation or runtimeOnly. Dependency: org.apache.maven:maven-artifact:3.8.5

@neoforged-pr-publishing
Copy link

  • Publish PR to GitHub Packages

@Technici4n Technici4n changed the title Remove additionalRuntimeClasspath when targeting Minecraft 1.21.9+ Disallow usage of additionalRuntimeClasspath when targeting Minecraft 1.21.9+ Oct 1, 2025
@shartte shartte merged commit 09fded7 into main Oct 1, 2025
6 checks passed
@shartte shartte deleted the disallow-additional-runtime-cp-for-new-mc branch October 1, 2025 19:47
@neoforged-releases
Copy link

🚀 This PR has been released as ModDevGradle version 2.0.111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants