public Class<? extends DefaultTask> getTaskType() {
return ProcessResources.class;
}
public void configureTask(Task task, BinarySpec binary, LanguageSourceSet sourceSet) {
ProcessResources resourcesTask = (ProcessResources) task;
JvmResourceSet resourceSet = (JvmResourceSet) sourceSet;
JvmBinarySpec jvmBinary = (JvmBinarySpec) binary;
resourcesTask.from(resourceSet.getSource());
resourcesTask.setDestinationDir(jvmBinary.getResourcesDir());
jvmBinary.getTasks().getJar().dependsOn(resourcesTask);
}
};
}