Skip to content

Conversation

@Jonathing
Copy link
Member

This PR re-implements the Mavenizer invocation to once again be a Gradle task that is run. However, this time I've taken the proper measures to ensure that the dependency resolves consistently with its assigned resolvable configuration (i.e. a classpath) and that the proper attributes are accounted for in time.

Additionally, ForgeGradle will check if the output directory for the Minecraft dependency exists before the compileJava task is run. This does not fix any issues, but instead gives a useful error message telling the consumer to re-sync the project rather than leaving them stuck with cryptic "class not found" compiler errors.

If no feedback or changes are requested by the end of the day, I will squash and merge this PR and close any related issues (except for #992).

All documentation pages will be moved to MinecraftForge/Documentation OR
its own repo if necessary when the time comes
docs/Overview.md Outdated

```groovy
plugins {
id 'net.minecraftforge.gradle' version '7.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing 7.0.0 with or similar would help prevent people from adding an old version, instead encouraging them to look on Gradle Plugin Portal. See EventBus' readme for an example of this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a way that we can get a badge in the file with the latest version number.
May be worth adding that badge.
[![Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/net.minecraftforge.gradle)](https://plugins.gradle.org/plugin/net.minecraftforge.gradle)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't be up on the plugin portal until 7.0.0, but yeah, that's worth putting on the README and the main documentation page.

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

Labels

bug Relates to or reports a bug in the codebase enhancement Enhances an existing feature in the codebase

Projects

None yet

3 participants