Running ./gradlew pig-rpm fails on the hadoop-tar task because GStringImpl doesn't have an empty method.
Use GString.equals('') instead of empty.
Updated patch. Use .isEmpty() instead of .equals('') to be consistent with other uses in packages.gradle
+1 looks like a hotfix we need
Good catch - .empty was used earlier on the plain String objects. My miss. Thanks!