GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.58k stars 1.43k forks source link

Support for building docker image for Gradle Java application #3495

Open Gopinathp opened 2 years ago

Gopinathp commented 2 years ago

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:

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.

meltsufin commented 2 years ago

Thank you for submitting this feature request.