Ben,

I worked a little on decoupling the gradle-cobertura plugin from github the 
other day when we lost the network route to the site. I hope this is helpful!

Cheers,
JB


/**
* This cobertura plug-in was implemented locally using the framework provided 
by Val Kolovos which is hosted on github. 
* The original version can be found here: 
* 
https://github.com/valkolovos/gradle_cobertura/blob/master/ivy/gradle_cobertura/gradle_cobertura/1.0-rc4/coberturainit.gradle
* 
* Deployment notes:
* 
* The gradle_cobertura jar which this plug-in provides has been uploaded to our 
internal artifact proxy as a
* maven-style dependency and is referenced below as a classpath dependency. If 
our artifact server gets wiped out 
* this plug-in will not work unless the jar file 
(gradle_cobertura-$version.jar) is uploaded to the artifactory 
* proxy located here:
* 
http://our.internal.server.url/artifactory/libs-release-local/gradle_cobertura/gradle_cobertura
* 
* @author jburbridge
* @since w172.11
*/
import org.gradle.api.internal.GradleInternal
import org.gradle.api.internal.project.ProjectInternal

buildscript {
    repositories {
        mavenRepo urls: repositoryUrl;
    }
    dependencies {
        classpath module("gradle_cobertura:gradle_cobertura:1.0-rc4") {
            dependency "net.sourceforge.cobertura:cobertura:1.9.4.1";
            dependency "org.codehaus.groovy:groovy:1.7.3";
            dependency "junit:junit:3.8.2";
            dependency "org.testng:testng:5.8";
        }
    }
}
apply plugin: com.orbitz.gradle.cobertura.CoberturaPlugin;


And build.gradle references the above init script thusly:

allprojects {
    buildscript {
        apply from: rootDir.path + '/coberturainit.gradle';
    }
}


-----Original Message-----
From: benturner [mailto:[email protected]] 
Sent: Tuesday, October 18, 2011 3:49 PM
To: [email protected]
Subject: [gradle-user] Re: How can I run gradle wrapper behind a firewall / 
using a proxy maven server?

Yep - that was it !

I was pulling in the gradle-cobertura plugin from github (I pulled a local
copy and checked it into the project) - this had it's own build.gradle file
with the call out to default maven repos in it.

Thanks for that - will need to doctor the plugin in a bit more to be "Stand
alone" rather than rely on access to github / maven / etc... to work.

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-can-I-run-gradle-wrapper-behind-a-firewall-using-a-proxy-maven-server-tp4915558p4915757.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to