You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gradle plugin: create zip and tar distributions with fat runnable jar #2622
When using fat runnable jars, it makes sense to have them also in the zip and tar distributions.
I tried to achieve this by adapting the distribution content, but that doesn't work because the bootRepackage task depends on the distributions tasks.
Is there a reason for this task dependency (I would expect the reverse dependency)?
I can't recall a specific reason for the distribution dependencies, it might have just been the easiest way to get the repackage task to run at the appropriate time.
Do you have an example gradle file that you could provide to show how tar/zip distributions are typically created?
Activity
philwebb commentedon Mar 10, 2015
I can't recall a specific reason for the distribution dependencies, it might have just been the easiest way to get the repackage task to run at the appropriate time.
Do you have an example gradle file that you could provide to show how tar/zip distributions are typically created?
houbie commentedon Mar 10, 2015
The distZip and distTar tasks come with the gradle application plugin (added by spring boot plugin).
See http://gradle.org/docs/current/userguide/application_plugin.html , section 45.4
I currently work around this issue with new tasks that overwrite the zip and tar distros:
If the dist tasks could depend on the bootRepackage task, this would be a bit easier and it would make sense to have this as default behavior.
btiernay commentedon Apr 9, 2016
This would be a great addition. Having some serious headaches with Spring Boot and
distTarright now due to #2679.13 remaining items
Create distribution for Boot jar or war when application plugin applied