Hi Phil,

On Fri, Jan 22, 2010 at 1:28 PM, Phil Messenger <[email protected]> wrote:

>
> Nice feature. Is there a way of specifying dependencies for a remote
> scriplet?
>

Yes. You can do in any script stuff like this:

import org.apache.commons.math.fraction.Fraction

buildscript {
   repositories {
      mavenCentral()
   }
   dependencies {
      classpath group: 'org.apache.commons', name: 'commons-math', version:
'2.0'
   }
}

println Fraction.ONE_FIFTH.multiply(2)

- Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz



>
> Phil.
> --
> View this message in context:
> http://old.nabble.com/Fertile-soil-for-the-Gradle-Plugin-Ecosystem-tp27239397p27272472.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
>
>
>

Reply via email to