Fixed scoping of maven variables in build.gradle