This KB article goes over the process of adding JDK packages onto an application container using the APT buildpack (https://github.com/cloudfoundry/apt-buildpack).
In general, you can bundle other packages other than JDK packages.
Tanzu Application Service
apt.yml file in the spring-music folder:spring-music application:apt.yml file with the jar file:openjdk-8-headless package has been added to the application dependencies folder: