'How can I change JDK 1.8 to JDK 11 in Heroku?
I created pipelines for bitbucket to deploy app to Heroku. I use java 11 but Heroku installs 1.8.
How to fix it?
I also created system.properties
in main/resources
indicating JDK and Maven versions:
Solution 1:[1]
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.
Solution 2:[2]
Firstly, check what the system.properties
file definitely got into your Git-repository by using git ls-files
.
Secondly, check what the first 3 bytes of the file are not UTF-8 BOM.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Abrar Ansari |
Solution 2 | happy_marmoset |