Java 20 now available

Change effective on 23 March 2023

Heroku’s support for Java, Scala, Clojure, and Gradle now includes support for OpenJDK version 20. To use this version of the JDK, create a file in your application with the following contents:


After your next deployment, Heroku will install and run your app with OpenJDK 20. For more information, see the article on Heroku Support for Java in the Dev Center. For more information on OpenJDK 20, see the official OpenJDK documentation.