Add encode option to build.gradle