gcr.io/paketo-buildpacks/executable-jar
The Paketo Buildpack for Executable JAR is a Cloud Native Buildpack that contributes a Process Type for executable JARs.
This buildpack will participate if any the following conditions are met:
<APPLICATION_ROOT>/META-INF/MANIFEST.MF
contains a Main-Class
entry<APPLICATION_ROOT>/**/*.jar
exists and that JAR has a /META-INF/MANIFEST.MF
file which contains a Main-Class
entryWhen building a JVM application the buildpack will do the following:
<APPLICATION_ROOT>
contains an exploded JAR:
<APPLICATION_ROOT>
to build and runtime $CLASSPATH
<APPLICATION_ROOT>/META-INF/MANIFEST.MF
Class-Path
exists$CLASSPATH
executable-jar
, task
, and web
process typesWhen participating in the build of a native image application the buildpack will:
<APPLICATION_ROOT>
contains an exploded JAR:
<APPLICATION_ROOT>
to build-time $CLASSPATH
<APPLICATION_ROOT>/META-INF/MANIFEST.MF
Class-Path
exists$CLASSPATH
When $BP_LIVE_RELOAD_ENABLE
is true:
watchexec
be installedreload
process typeEnvironment Variable | Description |
---|---|
$BP_LIVE_RELOAD_ENABLED |
Enable live process reloading. Defaults to false. |
$BP_EXECUTABLE_JAR_LOCATION |
An optional glob to specify the JAR used as an entrypoint. Defaults to "", which causes the buildpack to do a breadth-first search for the first executable JAR it finds. |
This buildpack is released under version 2.0 of the Apache License.