Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heroku/heroku-buildpack-jvm-common
Heroku's OpenJDK buildpack. A component of the Java, Scala, and Clojure buildpacks.
https://github.com/heroku/heroku-buildpack-jvm-common
buildpack heroku heroku-languages openjdk
Last synced: 27 days ago
JSON representation
Heroku's OpenJDK buildpack. A component of the Java, Scala, and Clojure buildpacks.
- Host: GitHub
- URL: https://github.com/heroku/heroku-buildpack-jvm-common
- Owner: heroku
- License: mit
- Created: 2012-08-23T00:35:24.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T14:07:27.000Z (about 1 month ago)
- Last Synced: 2024-09-30T13:05:26.931Z (about 1 month ago)
- Topics: buildpack, heroku, heroku-languages, openjdk
- Language: Shell
- Homepage:
- Size: 928 KB
- Stars: 41
- Watchers: 101
- Forks: 51
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Heroku Buildpack for the JDK [![CI](https://github.com/heroku/heroku-buildpack-jvm-common/actions/workflows/ci.yml/badge.svg)](https://github.com/heroku/heroku-buildpack-jvm-common/actions/workflows/ci.yml)
This is the official [Heroku buildpack](https://devcenter.heroku.com/articles/buildpacks) for [OpenJDK](http://openjdk.java.net/). It only installs the JDK, and does not build an application. It is used by the [Java](https://github.com/heroku/heroku-buildpack-java), [Scala](https://github.com/heroku/heroku-buildpack-scala), and [Clojure](https://github.com/heroku/heroku-buildpack-clojure) buildpacks.
## Usage from a Buildpack
This is how the buildpack is used from another buildpack:
```bash
JVM_BUILDPACK_URL="https://buildpack-registry.s3.us-east-1.amazonaws.com/buildpacks/heroku/jvm.tgz"
mkdir -p /tmp/jvm-common
curl --silent --fail --retry 3 --retry-connrefused --connect-timeout 5 --location $JVM_BUILDPACK_URL | tar xzm -C /tmp/jvm-common --strip-components=1
source /tmp/jvm-common/bin/util
source /tmp/jvm-common/bin/javainstall_java_with_overlay ${BUILD_DIR}
```## Standalone Usage
You may install the JVM buildpack into your app by running:
```
$ heroku buildpacks:set heroku/jvm
```If you want to use the edge version (the code in this repo), run this instead:
```
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-jvm-common.git
```Then it may be used by itself, or with another buildpack using [multiple buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app).
## License
Licensed under the MIT License. See LICENSE file.