In our Gradle project, we want to add a new module for functional-tests that needs to be able to access dependencies from other subprojects but still not be run as
I do it like this:
//for all sub projects subprojects { if (it.name != 'project name') { //do something } }
by this way, I can exclude some special project in subprojects.
subprojects
you can also use it in allprojects or project.
allprojects
project