This buildpack will install the AdoptOpenJDK runtimes.
This buildpack can be used with the Heroku Java buildpack to replace the default JDK by running:
$ heroku buildpacks:set jdk/adopt
$ heroku buildpacks:add heroku/java
You can customize the version of AdoptOpenJDK by setting the following config vars:
ADOPTOPENJDK_VERSION
(default: 8)ADOPTOPENJDK_IMPL
(default: hotspot)ADOPTOPENJDK_RELEASE
(default: latest)ADOPTOPENJDK_CHECKSUM
(no default)
Alternatively, you can codify these in your app by creating a system.properties
file with contents like this:
adoptopenjdk.version=8
adoptopenjdk.impl=hotspot
adoptopenjdk.release=latest
For more information on acceptable values, see the AdoptOpenJDK API docs.
MIT