Add scope+include/exclude support in mojo
See original GitHub issueDescription of the issue:
all dependencies of the mojo are added to the images
Expected behavior:
dependencies should be filterable, common way for maven is
- scope
- explicit includes/excludes (
g:a:v[:t:c]
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Third-party - License Maven Plugin - MojoHaus
Include or exclude scopes. You can include all dependencies or exclude them for one or many given scopes. · Include ArtifactIds or GroupIds....
Read more >Maven Surefire Plugin – Inclusions and Exclusions of Tests
By default, the Surefire Plugin will automatically include all test ... the tests you want to include (or exclude) or another patterns.
Read more >Maven: exclude dependency from shade plugin - Stack Overflow
Add scope tag in dependency tag with value as 'provided'. It will exclude that dependency. Similar to below dependency.
Read more >dependency-check-maven
Requires dependency resolution of artifacts in scope: compile+runtime . The goal is thread-safe and supports parallel builds.
Read more >Use the Latest Version of a Dependency in Maven - Baeldung
While many of them are out of the scope of this tutorial, let's take a ... It even included commons-collections4 since the exclusion...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rmannibucau @natlovewy2535
As promised, the Jib Extension Framework is now available with the latest Jib versions. You can easily extend and tailor the Jib plugins behavior to your liking.
We’ve written a general-purpose layer-filter extension that enables fine-grained layer control, including deleting files and moving files into new layers. The extension will cover your use-case to filter unwanted dependencies (or any files).
For general information about using and writing extensions, take a look at the Jib Extensions repo.
For reference profiles is not an option cause it requires rebuilds and is not release compatible whereas multiplying artificially modules work but slows down the build with no gain (why bypassing jib plugin to use core programmatically is saner).