gradle does not guarantee ordering of tasks defined in array. Explicity
add dependsOn property to buildThali if task is globalBuild.