我将system.properties
文件java.runtime.version=11
添加到了我的应用程序中,如here所述,提交了更改并随后用git push heroku master
推送了
不幸的是,Heroku仍然安装了JDK 1.8:
...
remote: -----> Java app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Installing Maven 3.3.9... done
...
...
...
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project my-module-persistence: Fatal error compiling: invalid target release: 11 -> [Help 1]
我还需要执行其他/其他步骤吗?