ClassManifestCollectorAction classManifestCollector = new ClassManifestCollectorAction(classList);
PluginValidationAction pluginValidationAction = new PluginValidationAction(descriptors, classList);
jarTask.filesMatching(PLUGIN_DESCRIPTOR_PATTERN, pluginDescriptorCollector);
jarTask.filesMatching(CLASSES_PATTERN, classManifestCollector);
jarTask.doLast(pluginValidationAction);
}
/**
* Implements plugin validation tasks to validate that a proper plugin jar is produced.
*/