paketo-buildpacks / libjvm

A library and helper applications that form the basis for building the different Paketo-style JVM-providing buildpacks
Apache License 2.0
19 stars 20 forks source link

Updates for LibJVM Release 2.x #309

Closed BarDweller closed 10 months ago

BarDweller commented 1 year ago

Summary

A fairly wide ranging update to bring libjvm up to run on top of libpak 2.x and libcnb 2.x Also adds support for extensions, by adding a new 'Generate' top level method.

Major changes:

Note: go.mod references libpak/libcnb as v2.0.0-alpha.1 the work in progress tag for the v2 branches of each.

Use Cases

Extensions performing JDK/JRE installs wanting to remain compatible with buildpacks doing the same are able to use libjvm to perform the version determination, and parse config etc.

Extensions are unable to configure via use of Layers, so helpers etc are not used within the new Generate path, the intent is to provide support for applying config via a companion buildpack calling a new util method to be written later in libjvm.

Checklist