Skip to content

Commit

Permalink
Ensure implementation and specification entries are present in `MANIF…
Browse files Browse the repository at this point in the history
…EST.MF`
  • Loading branch information
basil committed Nov 26, 2021
1 parent bcc4f2c commit 4b06a17
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,24 @@ protected void setAttributes(Manifest.ExistingSection mainSection) throws MojoEx

mainSection.addAttributeAndCheck(new Manifest.Attribute("Plugin-Class",pluginClassName));
}

mainSection.addAttributeAndCheck(
new Manifest.Attribute("Extension-Name", project.getArtifactId()));
mainSection.addAttributeAndCheck(
new Manifest.Attribute("Implementation-Title", project.getArtifactId()));
mainSection.addAttributeAndCheck(
new Manifest.Attribute("Implementation-Version", project.getVersion()));
if (project.getOrganization() != null) {
mainSection.addAttributeAndCheck(
new Manifest.Attribute("Implementation-Vendor", project.getOrganization().getName()));
}
mainSection.addAttributeAndCheck(
new Manifest.Attribute("Specification-Title", project.getDescription()));
if (project.getOrganization() != null) {
mainSection.addAttributeAndCheck(
new Manifest.Attribute("Specification-Vendor", project.getOrganization().getName()));
}

mainSection.addAttributeAndCheck(new Manifest.Attribute("Group-Id",project.getGroupId()));
mainSection.addAttributeAndCheck(new Manifest.Attribute("Short-Name",project.getArtifactId()));
mainSection.addAttributeAndCheck(new Manifest.Attribute("Long-Name",pluginName));
Expand Down

0 comments on commit 4b06a17

Please sign in to comment.