Java Code Examples for org.gradle.api.tasks.bundling.Jar#doLast()
The following examples show how to use
org.gradle.api.tasks.bundling.Jar#doLast() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaGradlePluginPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void configureJarTask(Project project) { Jar jarTask = (Jar) project.getTasks().findByName(JAR_TASK); List<PluginDescriptor> descriptors = new ArrayList<PluginDescriptor>(); Set<String> classList = new HashSet<String>(); PluginDescriptorCollectorAction pluginDescriptorCollector = new PluginDescriptorCollectorAction(descriptors); 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); }
Example 2
Source File: JavaGradlePluginPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void configureJarTask(Project project) { Jar jarTask = (Jar) project.getTasks().findByName(JAR_TASK); List<PluginDescriptor> descriptors = new ArrayList<PluginDescriptor>(); Set<String> classList = new HashSet<String>(); PluginDescriptorCollectorAction pluginDescriptorCollector = new PluginDescriptorCollectorAction(descriptors); 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); }