DavidEllis
(David Ellis)
November 9, 2011, 1:49pm
1
Hi
How do I avoid specifying a repositories section in each of my build.gradle files? i.e. in a similar way to the maven settings.xml concept.
I realize I can get my plugin to define a repository, but I can’t resolve the plugin in the first place!
Thanks David
luke_daley
(Luke Daley)
November 9, 2011, 2:11pm
2
Hi David,
The solution is to use init scripts to add any boilerplate.
http://gradle.org/current/docs/userguide/init_scripts.html
Use with caution though because it does make your build less portable because you are now relying on something external (just like Maven’s settings.xml).
DavidEllis
(David Ellis)
November 9, 2011, 4:03pm
3
thanks luke - that’s what I was after