My project consists of multiple subprojects, and the root project is not itself an android or android-library project. Subprojects include android, android-library and plain java projects. Where would be the best place to put the apply plugin: 'android-sdk-manager' line? I see some options:
The root project (does not seem to work).
Every android or android-library subproject.
subprojects { apply plugin: 'android-sdk-manager' } in the root project.
There doesn't seem to be any side-effects when using your plugin on non-android projects, so it feels like option 3 will be the "nicest" one.
My project consists of multiple subprojects, and the root project is not itself an android or android-library project. Subprojects include android, android-library and plain java projects. Where would be the best place to put the
apply plugin: 'android-sdk-manager'
line? I see some options:subprojects { apply plugin: 'android-sdk-manager' }
in the root project.There doesn't seem to be any side-effects when using your plugin on non-android projects, so it feels like option 3 will be the "nicest" one.