How do I bootstrap a repository


(David Ellis) #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) #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).


(David Ellis) #3

thanks luke - that’s what I was after