Saturday, 15 January 2011

proxy - Gradle: Error listing versions of junit#junit;4.+ -



proxy - Gradle: Error listing versions of junit#junit;4.+ -

i getting below error when running gradle build on gradle.properties file.

i know behind firewall , have poxy can use. i've tried adding below gradle.properties file, cannot pull downwards junit. help appreciated!

systemprop.http.proxyhost=www.somehost.org systemprop.http.proxyport=8080

error:

error listing versions of junit#junit;4.+ using class org.gradle.api.internal.artifacts.repositories.resolver.mavenversionlister$1. effort alternate way list versions. behaviour has been deprecated , scheduled removed in gradle 2.0 failure: build failed exception. * went wrong: not resolve dependencies configuration ':testruntime'. > not resolve junit:junit:4.+. required by: :healthmonitor:1.0 > failed list versions junit#junit;4.+. > not list versions using m2 pattern 'http://repo1.maven.org/maven2/ [organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'. > not 'http://repo1.maven.org/maven2/junit/junit/'. > connection http://repo1.maven.org refused

build.gradle:

apply plugin: 'java' apply plugin: 'eclipse' version = '1.0' jar { manifest { attributes 'implementation-title': 'health monitor', 'implementation-version': version } } repositories { mavencentral() } dependencies { testcompile group: 'junit', name: 'junit', version: '4.+' }

depending on proxy, may have configure more host , port. see accessing web via proxy in gradle user guide. also, recommend seek fixed version rather version range.

junit proxy gradle dependency-management

No comments:

Post a Comment