jib icon indicating copy to clipboard operation
jib copied to clipboard

Support for building docker image for Gradle Java application

Open Gopinathp opened this issue 4 years ago • 2 comments

Gradle's Java application plugin is very powerful plugin and it comes with certain features like debuggability. Its deployment architecture (bin/,lib/,var/ directories) feels like an installed *nix native app with its own java version checks.

https://docs.gradle.org/current/userguide/application_plugin.html

Environment:

  • Jib version:3.1.4
  • Build tool:Gradle with Kts
  • OS:MacOs

Sample log file.

jibbuildoutput.txt

Description of the issue: Gradle application plugin has distZip and install targets and its packaging is slightly different. JIB is not able to detect this and it fails to package properly.

It would be better to provide a working example with gradle application plugin and JIB.

Gopinathp avatar Nov 09 '21 15:11 Gopinathp

Thank you for submitting this feature request.

meltsufin avatar Nov 10 '21 21:11 meltsufin