code: protected boolean isDependentOn(GrailsPlugin plugin, String pluginName) {
  
          // check if toCompare depends on the current plugin
          String[] dependencyNames = plugin.getDependencyNames();
          for (int i = 0; i < dependencyNames.length; i++) {
  
              final String dependencyName = dependencyNames[i];
              if (pluginName.equals(dependencyName)) {
  
                  return true;
  
                  // we've establish that p does depend on plugin, so we can
                  // break from this loop
              }
          }
          return false;
      }
docs: Checks whether a plugin is dependent on another plugin with the specified
  name
  
  @param plugin
  the plugin to compare
  @param pluginName
  the name to compare against
  @return true if <code>plugin</code> depends on <code>pluginName</code>