paketo-buildpacks / native-image

A Cloud Native Buildpack that creates native images from Java applications
Apache License 2.0
51 stars 9 forks source link

Implement source include/exclude source support #280

Open dmikusa opened 1 year ago

dmikusa commented 1 year ago

Describe the Enhancement

Implement include/exclude behavior.

Possible Solution

The Java buildpacks are implementing source include/exclude inline by calling code from the source removal buildpack. This means it needs to be added into the buildpack at the correct location. Like we did with the build tools buildpacks.

Motivation

In some cases, you want source files to be carried over into the final image.