Gradle 2 compat : declare dest as a local variable