Skip to content

Set Automatic-Module-Name: com.github.copilot.sdk.java in JAR manifest#191

Merged
edburns merged 2 commits intomainfrom
copilot/add-automatic-module-name
Mar 12, 2026
Merged

Set Automatic-Module-Name: com.github.copilot.sdk.java in JAR manifest#191
edburns merged 2 commits intomainfrom
copilot/add-automatic-module-name

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

Without an Automatic-Module-Name, JPMS derives the module name from the JAR filename — fragile and liable to break across version bumps or artifact renames.

Changes

  • pom.xml — Added maven-jar-plugin (v3.4.2) with a manifest entry declaring Automatic-Module-Name: com.github.copilot.sdk.java

Resulting META-INF/MANIFEST.MF:

Automatic-Module-Name: com.github.copilot.sdk.java

Consumers can now safely write:

requires com.github.copilot.sdk.java;

No source changes. JAR remains an automatic module (no module-info.class).

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • mvn spotless:apply has been run to format the code
  • mvn clean verify passes locally

Does this introduce a breaking change?

  • Yes
  • No


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot AI changed the title [WIP] [FEAT] Set Automatic-Module-Name in MANIFEST.MF Set Automatic-Module-Name: com.github.copilot.sdk.java in JAR manifest Mar 12, 2026
@edburns edburns marked this pull request as ready for review March 12, 2026 12:42
@edburns edburns merged commit 99c341e into main Mar 12, 2026
5 checks passed
@edburns edburns deleted the copilot/add-automatic-module-name branch March 12, 2026 12:42
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.

[FEAT]: Set Automatic-Module-Name: com.github.copilot.sdk.java

2 participants