private static boolean isShadowJar(Jar task) {
    Class<?> type = GradleTaskUtil.getTaskIdentityType(task);
    return type != null && type.getName().equals("com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar");
  }
private static boolean isShadowJar(Jar task)