heroku-buildpack-jvm-common

by heroku

GitHub Readme.md

Heroku Buildpack for the JDK Build Status

This is the official Heroku buildpack for OpenJDK. It only installs the JDK, and does not build an application. It is used by the Java, Scala, and Clojure buildpacks.

Usage from a Buildpack

This is how the buildpack is used from another buildpack:

# download the buildpack
JVM_COMMON_BUILDPACK=${JVM_COMMON_BUILDPACK:-https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/jvm-common.tgz}
mkdir -p /tmp/jvm-common
curl --silent --location $JVM_COMMON_BUILDPACK | tar xzm -C /tmp/jvm-common --strip-components=1
. /tmp/jvm-common/bin/util
. /tmp/jvm-common/bin/java

# install JDK
javaVersion=$(detect_java_version ${BUILD_DIR})
install_java ${BUILD_DIR} ${javaVersion}

Standalone Usage

You may use this buildpack to install the JVM into your slug by running:

$ 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.

License

Licensed under the MIT License. See LICENSE file.