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

Added Automatic-Module-Name to jar manifests for Modular Java #1635

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Added Automatic-Module-Name to jar manifests for Modular Java #1635

merged 1 commit into from
Dec 1, 2022

Conversation

KrogerWalt
Copy link
Contributor

Checklist

Reference/Link to the issue solved with this PR (if any)

Description of the problem

I am building Modular Java 18 apps. When I add one or more of these libraries, it breaks my build because the library does not have a module that I can import.

Description of the solution

By adding the Automatic-Module-Name to the jar Manifest, people writing modular Java will still be able to use the libraries without preventing those still on Java 8 from using them. I have made this change in other Azure projects to allow Modular support.

*No tests changes were made, because the changes to the build file should not affect the code, only adding a line to the manifests that will allow them to work with Modular Java.

@KrogerWalt
Copy link
Contributor Author

@timtay-microsoft Could someone please look at this PR? I have a Modular Java 18 app, and I'm trying to connect it to Azure IoT Hub, but all the libraries are missing Module Names. (I have also fixed this for the Application Insights Java runtime attach library and it has already been approved, I just need these approved and merged as well to continue development of the project.) Please review and approve so I can begin using these libraries. Thanks!

@timtay-microsoft
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@timtay-microsoft
Copy link
Member

Sorry for the delay. Sure, this looks fine to me.

@KrogerWalt
Copy link
Contributor Author

Sorry for the delay. Sure, this looks fine to me.

No worries, thanks!

@timtay-microsoft timtay-microsoft merged commit 3168a33 into Azure:main Dec 1, 2022
@timtay-microsoft
Copy link
Member

We'll try to get a release out including this change in the next week or two, FYI

@KrogerWalt
Copy link
Contributor Author

Awesome, thanks for the quick turn-around @timtay-microsoft !

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