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