Skip to content

Commit

Permalink
Remove globalMaskClasses (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 16, 2023
1 parent 5a84292 commit 88ef718
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
14 changes: 0 additions & 14 deletions src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,6 @@ public abstract class AbstractHpiMojo extends AbstractJenkinsMojo {
@Parameter
protected String maskClasses;

/**
* Like the {@code maskClasses} parameter, but it applies at the boundary between core and
* all the plugins.
*
* <p>
* This mechanism is intended for those plugins that bring JavaEE APIs (such as the database plugin,
* which brings in the JPA API.) Other plugins that depend on the database plugin can still see
* the JPA API through the container classloader, so to make them all resolve to the JPA API in the
* database plugin, the database plugin needs to rely on this mechanism.
* @since 1.92
*/
@Parameter
protected String globalMaskClasses;

/**
* Change the classloader preference such that classes locally bundled in this plugin
* will take precedence over those that are defined by the dependency plugins.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ protected void setAttributes(Manifest.ExistingSection mainSection)
mainSection.addAttributeAndCheck(new Manifest.Attribute("Mask-Classes", maskClasses));
}

if (globalMaskClasses != null) {
mainSection.addAttributeAndCheck(new Manifest.Attribute("Global-Mask-Classes", globalMaskClasses));
}

if (pluginFirstClassLoader) {
mainSection.addAttributeAndCheck(new Manifest.Attribute("PluginFirstClassLoader", "true"));
}
Expand Down

0 comments on commit 88ef718

Please sign in to comment.