Discussion:
Extending DSL capabilities
aalmiray
2013-10-08 14:11:25 UTC
Permalink
Hello everyone,

I wonder if it's possible to instruct the build evaluator/launcher to use
different resolvers per DSL blocks in order to extend the DSL capabilities.
At the moment, Gradle handles the "repositories" block with an instance of
DefaultRepositoriesResolver, a similar thing happens with "dependencies" and
DefaultDependenciesResolver.

My question is, is it possible to let Gradle know that I want it to use
MyCustomRepositoriesResolver instead of the default one? If so, how can it
be done? Same thing for the dependencies resolver and possibly all other
"base" resolvers such as configuration, etc (by base I mean basic DSL blocks
as delivered by a Gradle build file sans plugin declarations).

Cheers,
Andres



--
View this message in context: http://gradle.1045684.n5.nabble.com/Extending-DSL-capabilities-tp5711934.html
Sent from the gradle-user mailing list archive at Nabble.com.
Rene Groeschke
2013-10-08 20:13:17 UTC
Permalink
Hey Andres,

would you mind to switch to the gradle forum? This list is not
maintained anymore. Can you draft the dsl extension you would like to
introduce?

cheers,
René
Post by aalmiray
Hello everyone,
I wonder if it's possible to instruct the build evaluator/launcher to use
different resolvers per DSL blocks in order to extend the DSL capabilities.
At the moment, Gradle handles the "repositories" block with an instance of
DefaultRepositoriesResolver, a similar thing happens with "dependencies" and
DefaultDependenciesResolver.
My question is, is it possible to let Gradle know that I want it to use
MyCustomRepositoriesResolver instead of the default one? If so, how can it
be done? Same thing for the dependencies resolver and possibly all other
"base" resolvers such as configuration, etc (by base I mean basic DSL blocks
as delivered by a Gradle build file sans plugin declarations).
Cheers,
Andres
--
View this message in context: http://gradle.1045684.n5.nabble.com/Extending-DSL-capabilities-tp5711934.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Loading...