code: private boolean isDependentOn(GrailsPlugin plugin, GrailsPlugin dependency) {
          for (String name : plugin.getDependencyNames()) {
              String requiredVersion = plugin.getDependentVersion(name);
  
              if (name.equals(dependency.getName()) &&
                      GrailsVersionUtils.isValidVersion(dependency.getVersion(), requiredVersion))
                  return true;
          }
          return false;
      }
docs: Checks whether the first plugin is dependant on the second plugin.
  
  @param plugin     The plugin to check
  @param dependency The plugin which the first argument may be dependant on
  @return true if it is