Friday 15 May 2015

Is it possible to restrict a gradle repository to a particular configuration? -



Is it possible to restrict a gradle repository to a particular configuration? -

i want tie gradle repositories specific configurations in build.gradle file, e.g.:

repositories { testcompile { mavencentral() } compile { maven { url 'https://vetted-repo.example.com' } } }

i can't find simple way gradle documentation. need write own plugin?

this not supported gradle @ moment. when resolving dependencies, gradle tries al listed repositories (from top bottom) resolve dependency. 1 time dependency found stops looking in other repositories

gradle repository

No comments:

Post a Comment