Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed unsafe property reading #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Luna5ama
Copy link
Contributor

@Luna5ama Luna5ama commented Dec 7, 2022

Passing arguments around using Java environment properties is unsafe and causes problems when building with architectury plugin with Gradle parallel build enabled. This moves all the properties into TransformerContext, since they are unique per transform task.
The Logger still has an old global access API just to keep things working. Same with SimpleTransformerContext, it still reads values from environment properties to maintain some compatibility. However, those should be replaced in the future. Some changes also have to be done on architectury-plugin to get it to work with these changes. There will be a pull request for it.

@MaxNeedsSnacks MaxNeedsSnacks requested review from shedaniel and a team April 10, 2023 01:21
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.

1 participant