I have a multi project build script. Some are java applications and some are android applications.
I want to configure all the java projects a certain way (apply plugins etc) and the android projects in a simular fashion. I have a one build script model (perhaps this isn’t the best approach) as I wanted to avoid duplication.
Project structure:
/root
java1/
java2/
java3/
android1/
android2/
settings.gradle
build.gradle
Is it possible to supply the configure() method with names of projects? I tried and it complained that it couldn’t find the method I specified.
// this failed
configure(java1, java2, java3) {}
I guess would it be better to reorganize the projects by type
ie.
/root
/java
....
build.gradle
/android
....
build.gradle
build.gradle
settings.gradle
Thanks