Gradle Java9 Could Not Target Platform: 'Java Se 9' Using Tool Chain: 'Jdk 8 (1.8)'

How can I change JDK 1.8 to JDK 11 in Heroku?

Create a system.properties file in your directory and commit to git.
more info https://devcenter.heroku.com/articles/customizing-the-jdk#prerequisites see doc for more info.

How to use OpenJDK 11 when deploying to Heroku?

Gradle didn't officially support JDK 11 until version 5.0 (released November 26, 2018). Upgrading to that version or later should fix the issue.

See also this similar question about Java 9 support.



Related Topics



Leave a reply



Submit