Helmut Denk wrote:
hi gradle,

i noticed that a sample for dsl-customization was checked in lately ... would something like this be possible too ?:


usePlugin 'java'
usePlugin com.mycompany.gradle.plugins.CustomRepositoriesPlugin

repositories {
// reference single custom-repo and/or custom-repo-chain that are // defined by the CustomRepositoriesPlugin
    myRepositoryChain()


It will be. The maven plugin will (probably) be using this to add the mavenInstaller() and mavenDeployer() methods.

You will be able to add properties and methods to RepositoryHandler using either a convention object, or a closure:

// Using a convention object
repositories.convention.plugins.myPlugin = new MyConventionObject()

class MyConventionObject {
   def myRepositoryChain() { ... }

   ... maybe some other properties and methods ...
}

// Using a closure

repositories.myRepositoryChain = { -> ... }

    mavenCentral()
}

dependencies {
    // some dependencies here
}

thanks & have a successful day

--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to