Skip to content

Scalingo/buildpack-jvm-common

 
 

Repository files navigation

Scalingo Buildpack for the JDK

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

Usage from a Buildpack

This is how the buildpack is used from another buildpack:

# Determine the root directory of your own buildpack. For example:
BUILDPACK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)"

JVM_BUILDPACK_URL="https://buildpacks-repository.s3.eu-central-1.amazonaws.com/jvm-common.tar.xz"

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/java

install_openjdk "${BUILD_DIR}" "${BUILDPACK_DIR}"

Standalone Usage

You may install the JVM buildpack into your app by running:

scalingo env-set BUILDPACK_URL=https://github.com/Scalingo/buildpack-jvm-common

Then it may be used by itself, or with another buildpack using multiple buildpacks.

License

Licensed under the MIT License. See LICENSE file.

Credits

This buildpack is maintained by Heroku: upstream

About

Common utils for JVM buildpacks

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 94.7%
  • Makefile 4.4%
  • Ruby 0.9%