Hi everyone,
I wonder whether is possible to move my project dependencies to a separate
text file. I've already done the this with my repositories list. I would
also like to know whether you find this is a good practice or not and why.
Here's what I need :
I don't want to live with my dependencies in the same file as the build
instructions and thought I might move the strings in a plain text file and
read that file line by line and add the dependencies like that :
myProject.dependencies file :
configuration | module dependency | excludes
#####################################
runtime | "org.apache.wicket:wicket:1.3.5" |
runtime | "org.apache.wicket:wicket-spring:1.3.5" |
runtime | "org.apache.wicket:wicket-spring-annot:1.3.5" |
runtime | "org.springframework:spring:2.5.5" | junit,wembvc,etc etc.....
runtime | "org.springframework:spring-aop:2.5.5" |
runtime | "org.springframework:spring-aspects:2.5.5" |
.................................................................................
What I want is read this file line by line, parse each line by "|" and
extract the configuration, the dependecies and excludes.
Now, I've tried using addDependency(conf....,dep.....) as stated in the doc
chapter : 12.2.3 Module Dependencies
dependencies {
addDependency(['compile'], "org.codehaus.groovy:groovy-all:1.5.4") {
exclude(module: 'jline')
exclude(module: 'junit')
}
}
However, gradle complains that there's no method signature
addDependency(..... , .....) in DefaultDependencyManager. I had a look at
the source and indeed there's no such method there.
I've tried some other ways around with the "dependencies" object but I
failed with those attempts as well.
I am using gradle 0.4.
Thanks very much,
Razvan
--
View this message in context:
http://www.nabble.com/Move-dependencies-to-separate-file-tp20363163p20363163.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