1. You can add the below logic to your settings.gradle at the root of your project so that all the subprojects under the root project will be picked up automatically.
import static groovy.io.FileType.FILES
def source ;
def dest;
new File(rootDir.toString()).eachFileRecurse(FILES) {
if(it.name.endsWith('build.gradle')) {
source = it.toString()
source = source.substring(rootDir.toString().length(), source.length())
source = source.replaceAll('\\/',':')
source = source.replaceAll('build.gradle','')
if(source.length()>1){
dest = source.substring(1, source.length()-1)
include dest
}
}
}
import static groovy.io.FileType.FILES
def source ;
def dest;
new File(rootDir.toString()).eachFileRecurse(FILES) {
if(it.name.endsWith('build.gradle')) {
source = it.toString()
source = source.substring(rootDir.toString().length(), source.length())
source = source.replaceAll('\\/',':')
source = source.replaceAll('build.gradle','')
if(source.length()>1){
dest = source.substring(1, source.length()-1)
include dest
}
}
}
No comments:
Post a Comment