question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add scope+include/exclude support in mojo

See original GitHub issue

Description of the issue:

all dependencies of the mojo are added to the images

Expected behavior:

dependencies should be filterable, common way for maven is

  1. scope
  2. explicit includes/excludes (g:a:v[:t:c])

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Jun 11, 2020

@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.

0reactions
rmannibucaucommented, May 7, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found