Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paketo-buildpacks/executable-jar
A Cloud Native Buildpack that contributes a Process Type for executable JARs.
https://github.com/paketo-buildpacks/executable-jar
cnb executable-jar hacktoberfest jvm-applications
Last synced: 6 days ago
JSON representation
A Cloud Native Buildpack that contributes a Process Type for executable JARs.
- Host: GitHub
- URL: https://github.com/paketo-buildpacks/executable-jar
- Owner: paketo-buildpacks
- License: apache-2.0
- Created: 2020-03-10T22:50:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T15:39:27.000Z (18 days ago)
- Last Synced: 2024-12-23T00:07:29.338Z (13 days ago)
- Topics: cnb, executable-jar, hacktoberfest, jvm-applications
- Language: Go
- Size: 564 KB
- Stars: 15
- Watchers: 10
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `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.
## Behavior
This buildpack will participate if any the following conditions are met:
* `/META-INF/MANIFEST.MF` contains a `Main-Class` entry
* `/**/*.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:
* Requests that a JRE be installed
* If `` contains an exploded JAR:
* It contributes `` to build and runtime `$CLASSPATH`
* If `/META-INF/MANIFEST.MF` `Class-Path` exists
* Contributes entries to build and runtime `$CLASSPATH`
* Contributes `executable-jar`, `task`, and `web` process typesWhen participating in the build of a native image application the buildpack will:
* If `` contains an exploded JAR:
* Contributes `` to build-time `$CLASSPATH`
* If `/META-INF/MANIFEST.MF` `Class-Path` exists
* Contributes entries to build-time `$CLASSPATH`When `$BP_LIVE_RELOAD_ENABLE` is true:
* Requests that `watchexec` be installed
* Contributes `reload` process type## Configuration
| Environment 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. |
## LicenseThis buildpack is released under version 2.0 of the [Apache License][a].
[a]: http://www.apache.org/licenses/LICENSE-2.0