Add Gradle Lock Plugin

Issue gh-7788
This commit is contained in:
Rob Winch
2019-12-16 10:45:15 -06:00
parent 06d7443946
commit 1bb1e74a9d
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package lock;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
/**
* @author Rob Winch
*/
public class GlobalLockPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getTasks().register("writeLocks", GlobalLockTask.class, writeAll -> {
writeAll.setDescription("Writes the locks for all projects");
});
}
}