-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Maven Shade support #5967
base: main
Are you sure you want to change the base?
Maven Shade support #5967
Conversation
…se a shaded version of SnakeYaml
|
||
class MavenShadePlugin extends MavenPlugin { | ||
MavenShadePlugin() { | ||
this.getGroup().getValue() = "org.apache.maven.plugins" and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The groupId
is optional, see https://stackoverflow.com/a/65533111.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done
MavenShadePlugin plugin; | ||
|
||
MavenShadeRelocation() { | ||
this.getParent().(XMLElement).getParent().(XMLElement).getParent() = plugin and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to add a comment explaining the hierarchy here, i.e. plugin -> configuration -> relocations -> relocation
It is also possible to specify the configuration per execution, as it was done in the example of the Maven Shade Plugin, see also the POM Reference.
Yaml() { this.getASupertype*().hasQualifiedName("org.yaml.snakeyaml", "Yaml") } | ||
Yaml() { | ||
this.getASupertype*() | ||
.hasQualifiedName(getAShadedPackage("org.yaml.snakeyaml.constructor"), "Yaml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this changed on purpose, shouldn't it be the following? (might require formatting)
.hasQualifiedName(getAShadedPackage("org.yaml.snakeyaml.constructor"), "Yaml") | |
.hasQualifiedName(getAShadedPackage("org.yaml.snakeyaml"), "Yaml") |
Co-authored-by: Marcono1234 <[email protected]>
Thanks, changes applied |
No description provided.