Skip to content

Scalingo/buildpack-jvm-common

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 63 commits ahead, 4 commits behind heroku:main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
etc
 
 
lib
 
 
opt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

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 xJm -C /tmp/jvm-common --strip-components=1
source /tmp/jvm-common/bin/util
source /tmp/jvm-common/bin/java

install_java_with_overlay ${BUILD_DIR}

You can also install only Java without overlay:

JVM_BUILDPACK_URL="https://buildpacks-repository.s3.eu-central-1.amazonaws.com/jvm-common.tar.xz"
mkdir -p /tmp/jvm-common
curl --silent --location $JVM_BUILDPACK_URL | tar xJm -C /tmp/jvm-common --strip-components=1
source /tmp/jvm-common/bin/util
source /tmp/jvm-common/bin/java

# Java 11 (LTS) for example
install_java ${BUILD_DIR} 11

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 89.2%
  • Ruby 10.8%