Skip to content

Add Automatic-Module-Name manifest entry #972

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

Merged
merged 2 commits into from
May 5, 2023
Merged

Conversation

jensli
Copy link
Contributor

@jensli jensli commented May 4, 2023

This gets rid of warnings on Java 9+, and makes it safer to use this library as a module.

This gets rid of warnings on Java 9+, and makes it safer to use this
library as a module.
@jmini
Copy link
Collaborator

jmini commented May 4, 2023

The CI error is unrelated with this change. We need to merge #970 or an equivalent solution

pom.xml Outdated
@@ -171,6 +171,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.gitlab4j</Automatic-Module-Name>
Copy link
Collaborator

@jmini jmini May 4, 2023

Choose a reason for hiding this comment

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

Where is the best practice definition for automatic-module-names?

since our groupId is: org.gitlab4j
and our artifactId is: gitlab4j-api

I am wondering if it wouldn't be better to name this module org.gitlab4j.api.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know. Your suggestion org.gitlab4j.api absolutely sounds reasonable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jabby do you have an opinion?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think org.gitlab4j.api is a good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think org.gitlab4j.api is a good idea.

Updated to org.gitlab4j.api.

@jmini jmini merged commit 0f312e6 into gitlab4j:main May 5, 2023
@jensli jensli deleted the patch-2 branch May 5, 2023 09: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.

3 participants