java 8 - Travis CI fails to unzip gradle 1.11 with gradle wrapper -


since today, builds of 1 of projects fail on travis ci, because of issues in unzipping gradle 1.11. applies newer builds old builds executed fine days ago. gradlew assemble works fine on local machine, fails on travis ci. the output of build following:

using worker: worker-linux-6-2.bb.travis-ci.org:travis-linux-9  $ git clone --depth=50 --branch=master git://github.com/lenhard/pete.git lenhard/pete cloning 'lenhard/pete'... remote: counting objects: 779, done. remote: compressing objects: 100% (567/567), done. remote: total 779 (delta 325), reused 571 (delta 134) receiving objects: 100% (779/779), 4.20 mib | 0 bytes/s, done. resolving deltas: 100% (325/325), done. checking connectivity... done. $ cd lenhard/pete $ git checkout -qf 5bef29676d981c7de80517950cbb9b1bb85bba00 $ jdk_switcher use oraclejdk8 switching oracle jdk8 (java-8-oracle), java_home set /usr/lib/jvm/java-8-oracle update-alternatives: error: no alternatives apt. $ java -version java version "1.8.0" java(tm) se runtime environment (build 1.8.0-b128) java hotspot(tm) 64-bit server vm (build 25.0-b69, mixed mode) $ javac -version javac 1.8.0 before_install $ chmod +x gradlew $ ./gradlew assemble downloading http://services.gradle.org/distributions/gradle-1.11-bin.zip  unzipping /home/travis/.gradle/wrapper/dists/gradle-1.11-bin/4h5v8877arc3jhuqbm3osbr7o7/gradle-1.11-bin.zip /home/travis/.gradle/wrapper/dists/gradle-1.11-bin/4h5v8877arc3jhuqbm3osbr7o7 exception in thread "main" java.util.zip.zipexception: error in opening zip file @ java.util.zip.zipfile.open(native method) @ java.util.zip.zipfile.<init>(zipfile.java:220) @ java.util.zip.zipfile.<init>(zipfile.java:150) @ java.util.zip.zipfile.<init>(zipfile.java:164) @ org.gradle.wrapper.install.unzip(install.java:148) @ org.gradle.wrapper.install.createdist(install.java:65) @ org.gradle.wrapper.wrapperexecutor.execute(wrapperexecutor.java:129) @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:47) 

travis tries repeat gradlew assemble 2 more times, fails ultimately. .travis.yml simple:

language: java jdk:   - oraclejdk8  before_install:  - chmod a+x gradlew 

where issue come from? when accessing http://services.gradle.org/distributions/gradle-1.11-bin.zip machine, proper distribution can unzipped , works. related fact use jdk 1.8?

the issue neither caused travis ci, nor project configuration. instead, seems gradle wrapper had problems following redirects new host. came enablement of https downloads wrapper @ gradle.org. problem fixed on side , normal now.

more info on problem can found in gradle forums.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -