lindenb / jvarkit

Java utilities for Bioinformatics
https://jvarkit.readthedocs.io/
Other
482 stars 133 forks source link

Biostar404363 build failing, gradle cannot download htsjdk #145

Closed 690645258 closed 4 years ago

690645258 commented 4 years ago

Subject of the issue

When running the command ./gradlew biostar404363 to build biostar404363 it appears to be using depreciated links on maven. Manually downloading htsjdk etc allows gradle to get to the next step but each link is failing.

As far as I can tell http://central.maven.org/ needs to be altered to https://repo1.maven.org/ and this allows me to manually download the correct .jar's and place them in the correct directory.

Your environment

Steps to reproduce

./gradlew biostar404363

Expected behaviour

biostar404363 build successfully

Actual behaviour

`Downloading https://services.gradle.org/distributions/gradle-5.1.1-bin.zip .................................................................................

Welcome to Gradle 5.1.1!

Here are the highlights of this release:

For more details see https://docs.gradle.org/5.1.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :biostar404363 FAILED Downloading http://central.maven.org/maven2/com/github/samtools/htsjdk/2.20.1/htsjdk-2.20.1.jar to /home/user/bioinformatics_tools/jvarkit/lib/com/github/samtools/htsjdk/2.20.1/htsjdk-2.20.1.jar

FAILURE: Build failed with an exception.

BUILD FAILED in 13s 1 actionable task: 1 executed `

lindenb commented 4 years ago

Ah, maven changed the URL where the libraries are downloaded. I've just fixed this.

https://github.com/lindenb/jvarkit/commit/b3893fd3364fe8a4c13789420ed4fde26d051e86

can you try again please ?

690645258 commented 4 years ago

Builds perfectly now, thanks!