Gradle exclude plugin in main project for specific subproject(s)
I am working on a larger project that contains many subprojects which are all build with gradle. Generally all projects are java projects, therefore in the main build.gradle script allprojects { apply plugin: 'java' } is specified for all projects. However I need to either remove the plugin for a certain subtree of projects or explicitly exclude the the projects from the plugin. Heres a rough overview of the project layout + Main +-- javaApplications +-- javaLibs +-- Android +-----AndroidApps +-----AndroidLibs Android/* does not need the java plugin. What is the best solution to achieve this?