Skip to content

Conversation

@Earthcomputer
Copy link
Contributor

Adds an integration test for applying annotations in mappings, based on the annotation that is published in yarn at the moment. We can add more test cases when more annotations are added in yarn.

Comment on lines +5 to +9
dependencies {
minecraft "com.mojang:minecraft:25w42a"
mappings "net.fabricmc:yarn:25w42a+build.9:v2"
modImplementation "net.fabricmc:fabric-loader:0.17.3"
}
Copy link
Member

Choose a reason for hiding this comment

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

For a test as simple as this just use the minimalBase project, and have a look at how the other tests use it, you can just move this dependencies block into the groovy test code. It doesnt look like you have a reason to have actual mod code for this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without mod code, :compileJava would be skipped, and I noticed it wasn't generating the Minecraft jar

Copy link
Member

Choose a reason for hiding this comment

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

Uhh, that shouldnt be the case (I wish it was) 🤔 Happy to go with this its not a big deal.

@modmuss50 modmuss50 merged commit b2c933d into FabricMC:exp/1.12 Oct 17, 2025
47 checks passed
@Earthcomputer Earthcomputer deleted the annotations-apply-integration-test branch October 17, 2025 17:17
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