I am trying to create a plugin which can exclude specific configuration from the project and I have a few questions.
Let’s say I have a project with following configurations:
compile: |--dep1 |--dep2 |--dep3 test: |--test_dep1 |--test_dep2 |--test_dep3
So when I want to build such project, all dependencies for all configuration will be downloaded.
And this is what I want to change.
I want to be able to exclude
test configuration from given project, so test dependencies are not downloaded.
My first attempt was to try to remove
test configuration from
configurations container, but in this case project fails during evaluation stage.
So the ultimate goal is to make it possible to build project w/o downloading dependencies for specific configuration