今天在运行travis CI 的时候,发现了如下的错误:
Expected feature release number in range of 9 to 13, but got: 8
我用的是jdk版本是:oraclejdk8
travis的配置在.travis.yml里面
解决方法
由于playframework 支持jdk 8,所以这里换成openjdk8(openjdk10也测试了,会报其他的错误,这个可以根据自己的项目来):
matrix:
include:
- language: scala
scala:
- 2.12.8
jdk: openjdk8
# jdk: oraclejdk8
# - language: node_js
# node_js:
# - 10.15.0
# before_install:
# - cd web
# install:
# - yarn install
notifications:
email: false
参考文献
[1]. Install of openjdk11 is failing (again). https://travis-ci.community/t/install-of-openjdk11-is-failing-again/3061
[2]. The Travis CI Build Could not be completed due to an error. https://travis-ci.community/t/the-travis-ci-build-could-not-be-completed-due-to-an-error/1345