PureDevOps Community

Invalid target release: 10 when pushing the heroku repo

You have to create a file called system.properties in the root of your project, and therein have the following entry:

java.runtime.version=12

However, Heroku does not support runtime version 10, 12, only the odd numbers (so 11, 13, 15 as of this article). See Heroku Java Support | Heroku Dev Center

Be sure to have both pom.xml and system.properties are targeting the same version.