Disable / remove repository added by other applied script?


(Wujek Srujek) #1

Is it possible to disable / remove a repository applied by some other script / plugin? For example, I have a company-wide script that defines our repository and it is applied from most of our projects. However, for some reason, one of the projects should not use our internal repo, but it would still be nice to be able to apply the common build script. Something like:

repositories {

remove ‘some id’ }

or similar?

wujek


(Luke Daley) #2

project.repositories is a mutable List. You can use the standard methods to remove something.


(Wujek Srujek) #3

Of course, thanks!