Hi,
I am using jdk 1.7, gradle 1.3
I have a /gradle.properties file at the root folder of my project i.e. at C:\partha\codeRepo\gradle002\gradle.properties, where gradle002 is my java project.
systemProp.http.proxyHost = Name of proxy. The one that works with Maven systemProp.http.proxyPort = 8080 systemProp.http.proxyUser = domain/username. These work with Maven as well.
When I run clean (or any other command) expectedly gradle tries to download dependencies from mavencentral. My buil.gradle looks like this
// Java plugin to build our JAR artifact. apply plugin: ‘java’
// Build stuff with jdk 1.7 sourceCompatibility = 1.7 targetCompatibility = 1.7
// Regular name and version for your project.
group = ‘foo.bar.gradle’ version = ‘1.0-SNAPSHOT’
// The local maven repository def localMavenRepo = ‘file://C:/ProgramFiles/MavenRepository’
repositories {
// Use the maven central repository.
mavenCentral()
// … and the local maven repository.
maven { url localMavenRepo }
// maven { url ‘http://www.springsource.com/repository/’ } }
dependencies {
compile ‘org.databene:contiperf:2.2.0’,‘org.springframework:spring-webmvc:3.2.1.RELEASE’
testCompile ‘junit:junit:4.11’
/compile.exclude module: ‘commons’/
/all.exclude*/
}
But all I get is
NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
for each dependency and I have checked in the local repository folder, the dependency are not downloaded.
So, net net, on gradle 1.3, behind a proxy, using NTLM, I am not able to download dependencies. It warrants mention that if I download the dependencies via Maven, and then try and execute the build and release using gradle, it is working alright. But I need to have a gradle only solution, cause I am trying to evangelize gradle in my organization.
I have reached out at http://stackoverflow.com/questions/14434101/gradle-not-working-behind-proxy-with-ntlm-on-windows as well.
Please help.