All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vacco.beleth.BlPlugin Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package io.vacco.beleth;

import org.gradle.api.*;

public class BlPlugin implements Plugin {

  @Override public void apply(Project project) {
    project.afterEvaluate(p -> {
      var tasks = project.getTasks();
      var classes = tasks.getByName("classes");
      var blTask = tasks.create("crd-codegen", BlTask.class);
      blTask.setGroup("build");
      blTask.setDescription("Generates java sources for CRDs.");
      classes.dependsOn(blTask);
    });
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy