Hi Ricardo,
what about:
--------------
class SamplePlugin implements Plugin<Project>{
void apply(Project project){
def antTaskConfig = project.getConfigurations().add('antTask');
project.getDependencies().add(antTaskConfig.name,
project.fileTree(dir:'lib', include: '*.jar'))
}
}
--------------
Am 26.09.11 22:02, schrieb Ricardo Mayerhofer:
Hi Szczepan,
Thanks for your response. I couldn't manage to implement it. Could you help
me with a specific example using groovy? For example to add "fileTree(dir:
'lib', include: '*.jar')" dependencies to "antTask" configuration.
Thanks.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/How-to-programmatically-add-dependency-to-a-configuration-tp4763744p4842712.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
--
-----------------------
regards,
René
rene groeschke
http://www.breskeby.com
@breskeby
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email