How to exclude subproject from common gradle tasks

I have a multi-project. There is “documentation” project that doesn’t need to any gradle tasks such as build, test, etc. How can I exclude this project from them?