Can't download com.google.code.findbugs:jsr305:1.3.9 dependency


(Steven Devijver) #1

This is my build file:

apply plugin: ‘java’

repositories {

mavenCentral()

}

dependencies {

compile ‘com.google.code.findbugs:jsr305:1.3.9’

}

This is the output:

C:\dev\test>gradle build

:compileJava UP-TO-DATE

:processResources UP-TO-DATE

:classes UP-TO-DATE

:jar

:assemble

:compileTestJava UP-TO-DATE

:processTestResources UP-TO-DATE

:testClasses UP-TO-DATE

:test

FAILURE: Build failed with an exception.

  • What went wrong:

Could not resolve all dependencies for configuration ‘:testRuntime’.

Could not resolve com.google.code.findbugs:jsr305:1.3.9.

Required by:

:test:unspecified

Could not HEAD 'http://repo1.maven.org/maven2/com/google/code/findbugs/jsr3

05/1.3.9/jsr305-1.3.9.pom’.

repo1.maven.org

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.

BUILD FAILED

Total time: 27.556 secs

C:\dev\test>

This is my gradle version information:

C:\dev\test>gradle -v


Gradle 1.6


Gradle build time: dinsdag 7 mei 2013 9.12 u. UTC

Groovy: 1.8.6

Ant: Apache Ant™ version 1.8.4 compiled on May 22 2012

Ivy: 2.2.0

JVM: 1.6.0_24 (Sun Microsystems Inc. 19.1-b02)

OS: Windows 7 6.1 x86

C:\dev\test>

When I change from findbugs 1.3.9 to version 2.0.0 it works fine.


(Peter Niederwieser) #2

Works fine for me. Can you try again, possibly with ‘–refresh-dependencies’? Might have been a network hiccup.


(Steven Devijver) #3

‘–refresh-dependencies’ did the trick. I still don’t understand why it worked for version ‘2.0.0’ but not for version ‘1.3.9’. Thanks.