-
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
Detect bootJar task (Spring Boot fat JAR) and enable jar task to use the thin JAR #2178
Conversation
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.
I think this looks good. Would it make sense to start a document describing how jib handles different frameworks? <-- not necessary but could be nice to point specific framework users to?
I need to keep researching on it. Work in progress. |
The commit message says: "Detect bootJar task and enable jar task". But it does more. It also forces the classifier to 'original'. a692b8b#diff-aef8bf567c91df6622aa0ea29ed0c682R192 Why would you do so? This broke our build. I can't set the classifier manually any more. Except: not applying jib. |
Hi @ewirch, When you apply the Spring Boot plugin, it will automatically disable the |
Sure thing. The important part is here:
This part is reused in multiple sub-projects of a multi project build. This will give use two artifacts per sub-project:
We use both in different deployment scenarios. After updating jib to 2.0.0 we end up with:
without a option to get the original naming back. Sure, we could adjust our build scripts to use |
@ewirch that makes sense. I think we can fix this easily. How about this? Basically, if the |
Implements #1852 (comment) for Gradle. That is, this automatically enables #1851 (comment) and makes use of the thin JAR by the
jar
task.Closes #1851.