-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Project dependencies in a separate layer for WAR projects #2450
Comments
I use jib-maven-plugin 2.2.0 and I have a separate layer for the dependencies. <packaging>war</packaging> }, {
"created": "2020-05-13T13:36:58.743844200Z",
"author": "Jib",
"created_by": "jib-maven-plugin:2.2.0",
"comment": "dependencies"
}, {
"created": "2020-05-13T13:36:58.743844200Z",
"author": "Jib",
"created_by": "jib-maven-plugin:2.2.0",
"comment": "snapshot dependencies"
}, { Or I'm I mistaken? |
I was talking about "project dependencies", i.e., JAR from a sibling module/sub-project within the same project. |
OK, I'll work on it. ;-) |
@Eveneko thank you very much! If you need any help, let us know. I think it's not difficult to implement this on Maven. For a non-WAR project, we identify project dependencies in |
@chanseokoh session
.getProjects()
.stream()
.map(MavenProject::getArtifact)
.collect(Collectors.toSet()) I am not clear about MavenSession (try to find documents but failed ) |
@Eveneko
then in So the same story still applies to the WAR case, basically. The difference, however, would be that you may need to check actual filenames in |
Hi @chanseokoh, thank you for your guide. We created a pr and hope that you can review it. Working with @Eveneko. |
Thanks @WuYff for your contribution! This is released as part of jib |
Thanks @chanseokoh @loosebazooka ! :) |
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. For general information about using and writing extensions, take a look at the Jib Extensions repo. |
We put project dependencies into a separate layer for JAR projects (#1436 (comment) and #403 (comment)), but this isn't supported for WAR projects.
Note there are other related feature requests for generalized dependency control (such as excluding certain dependencies from a list and fine-controlled dependency layering):
#1962 (comment)
#403 (comment)
#403 (comment)
#403 (comment)
#403 (comment)
#1436 (comment)
#1852
Note we expect to support the generalized fined-grained dependency control through the Jib extension framework: #1962 (comment)
The text was updated successfully, but these errors were encountered: