io.vacco.beleth.BlPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.vacco.beleth.gradle.plugin Show documentation
Show all versions of io.vacco.beleth.gradle.plugin Show documentation
Programmatic resource management for Kubernetes
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);
});
}
}