Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

gradle(deps): bump mixin from 0.7.11-SNAPSHOT to 0.8.5 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Sep 10, 2022

Bumps mixin from 0.7.11-SNAPSHOT to 0.8.5.

Release notes

Sourced from mixin's releases.

Mixin 0.8.5

If you only care about the headlines then here's the lowdown on this release:

  • Adds module imports for the new module names for Gson and Guava which ship with Minecraft 1.18. This fixes an issue where mixin was failing to load because it imported the old module names.
  • Fixes an issue with the AP which was preventing generation of mappings for anonymous classes
  • The AP now detects IntelliJ IDEA and disables some warnings in the same way it previously did for Eclipse
  • All AP message levels (eg. warning, error) are configurable

Configuring AP Messaging

Improving the behaviour of the AP when running in the IDE also exposed some opportunities to give you, as a developer, more control over the AP's behaviour. Every single error, warning, or informational message generated by the AP is now configurable via the MessageType enum. This means that in addition to the site-specific @SuppressWarnings support defined in SuppressedBy it's now possible to globally control the message level for individual messages.

Message levels can be controlled by their type code, but don't worry, it's not necessary to look up the code in the MessageType enum every time, since controlling the message levels is fully supported by MixinGradle:

To find out the message type code for a particular message being generated by your build, simply specify the showMessageTypes option in the mixin closure:

mixin {
   config "mixins.mymod.json"
   add sourceSets.main, "mixins.mymod.refmap.json"
// add this line
showMessageTypes = true
}

Now when you run your build, each message will be prefixed with the message type in square brackets:

MixinRegionFileStorage.java:40: warning: [MIXIN_SOFT_TARGET_IS_PUBLIC] Mixin target
net/minecraft/world/level/chunk/storage/RegionFileStorage is public and should be specified in value
@Mixin(targets = "net/minecraft/world/level/chunk/storage/RegionFileStorage")
^

Now that you know the message type code (MIXIN_SOFT_TARGET_IS_PUBLIC) you can define a new level for the message in your mixin closure. Specify a closure for messages as follows:

mixin {
   config "mixins.mymod.json"
   add sourceSets.main, "mixins.mymod.refmap.json"
showMessageTypes = true
messages {
MIXIN_SOFT_TARGET_IS_PUBLIC = 'error'
}
}

Now when you run your build, the warning has been upgraded to error:

MixinRegionFileStorage.java:40: error: [MIXIN_SOFT_TARGET_IS_PUBLIC] Mixin target
net/minecraft/world/level/chunk/storage/RegionFileStorage is public and must be specified in value
@Mixin(targets = "net/minecraft/world/level/chunk/storage/RegionFileStorage")
^
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mixin](https://github.com/SpongePowered/Mixin) from 0.7.11-SNAPSHOT to 0.8.5.
- [Release notes](https://github.com/SpongePowered/Mixin/releases)
- [Commits](https://github.com/SpongePowered/Mixin/commits/releases/0.8.5)

---
updated-dependencies:
- dependency-name: org.spongepowered:mixin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Sep 10, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 10, 2022

Dependabot tried to add @Krazzzzymonkey and @nothub as reviewers to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/Pr3roxDLC/Catalyst/pulls/4/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the Pr3roxDLC/Catalyst repository. // See: https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants