2 回答

TA貢獻1836條經(jīng)驗 獲得超5個贊
看起來您忘記簽入 gradle/wrapper 中的文件。它應該有兩個文件gradle-wrapper.jar
和gradle-wrapper.properties
.

TA貢獻1995條經(jīng)驗 獲得超2個贊
好吧,問題是我的 Spring-boot 應用程序同時具有 Maven 和 Gradle 文件。我相信,當我嘗試不同的東西時,我生成了 Gradew 文件,因此 Travis CI 正在尋找 Gradle。
解決方案是刪除所有 gradle 文件并重新運行 travis。我已經(jīng)更新了我的 travis.yml 如下
jdk:
- oraclejdk8
# would just use default install/script but the ./mvnw script errors on travis
# obviously this only works for maven builds right now...
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn cobertura:cobertura
script:
- mvn test
dist: trusty
after_success:
- bash <(curl -s https://codecov.io/bash) -t
添加回答
舉報