GoogleContainerTools / GoogleContainerTools/jib

Support for building docker image for Gradle Java application

Open
#3,495 2 comments 0 reactions 0 assignees View on GitHub
enhancement priority:p3
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/GoogleContainerTools/jib/files/7505718/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.

[](url)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.