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

Add Automatic-Module-Name to jar manifest. Fixes #292. #295

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

brcolow
Copy link
Contributor

@brcolow brcolow commented Aug 3, 2021

Issue #, if available:
#292

Description of changes:

Configures the gradle JAR plugin to add an Automatic-Module-Name entry to the manifest for each project. This allows for using aws-xray-sdk-java in a modular Java project.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

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

Thanks!

aws-xray-recorder-sdk-sql/build.gradle.kts Outdated Show resolved Hide resolved
@willarmiros willarmiros merged commit a1ed255 into aws:master Aug 3, 2021
@brcolow brcolow deleted the automatic-module-name branch August 3, 2021 20:02
@brcolow
Copy link
Contributor Author

brcolow commented Aug 4, 2021

I may have made a mistake here. I think that the module names should not have dashes. Instead of com.amazonaws.xray.aws-sdk-v2 it should, I think, be: com.amazonaws.xray.aws.sdk.v2. I will make a new PR.

@brcolow
Copy link
Contributor Author

brcolow commented Aug 4, 2021

@willarmiros Yes - I did make a mistake. JPMS does not allow dashes in module names. Should we use dots as above or perhaps underscores would be more appropriate?

@brcolow
Copy link
Contributor Author

brcolow commented Aug 4, 2021

I am not sure which way to go, so I opened two pull requests - one using dots and one using underscores:

#296
#297

Sorry for not getting it right the first time.

@willarmiros
Copy link
Contributor

IMO Underscores are better so as not to confuse the dots with package delimiters. Do you agree @anuraaga?

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.

3 participants