diff options
author | gjoranv <gv@yahooinc.com> | 2023-06-29 11:04:50 +0200 |
---|---|---|
committer | gjoranv <gv@yahooinc.com> | 2023-07-03 22:37:54 +0200 |
commit | 979753200381f39578232c18001b8fae7047f0bb (patch) | |
tree | 83014878aa11d2a66be439bd19b0cca1cf0b9871 /bundle-plugin | |
parent | 4ab25db76d0d07b90afb49fc1ca04f42275a8b3c (diff) |
Add switch to suppress "embedded artifacts" warning.
Diffstat (limited to 'bundle-plugin')
-rw-r--r-- | bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java index a5392f08e4b..4f2fe4b1200 100644 --- a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java +++ b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java @@ -78,6 +78,8 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo { private boolean suppressWarningPublicApi; @Parameter(defaultValue = "false") private boolean suppressWarningOverlappingPackages; + @Parameter(defaultValue = "false") + private boolean suppressWarningEmbeddedArtifacts; @Parameter(defaultValue = "false") private boolean failOnWarnings; @@ -248,7 +250,7 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo { } private void logProvidedArtifactsIncluded(List<Artifact> includedArtifacts, List<ProvidedArtifact> providedArtifacts) { - // TODO: add suppress switch + if (suppressWarningEmbeddedArtifacts) return; Set<ProvidedArtifact> included = includedArtifacts.stream().map(ProvidedArtifact::new).collect(Collectors.toSet()); Set<ProvidedArtifact> providedIncluded = Sets.intersection(included, new HashSet<>(providedArtifacts)); |