public static void zipDirectory(String sourceDirectoryPath, String targetFilePath)
      throws IOException {
    Path sourceDirectory = Paths.get(sourceDirectoryPath);
    Path targetFile = Paths.get(targetFilePath);

    zipDirectory(sourceDirectory, targetFile);
  }
*
Utilities class to zip/unzip directory
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/ZipUtils.java