io.micronaut.starter.feature.view.gradlePluginJTE.rocker.raw Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micronaut-starter-core Show documentation
Show all versions of micronaut-starter-core Show documentation
Generates Micronaut applications
@import io.micronaut.starter.build.gradle.GradleDsl
@args(boolean patchKaptOutputs, GradleDsl dsl, String path)
jte {
@if(dsl == GradleDsl.KOTLIN) {
sourceDirectory.set(file("src/main/jte").toPath())
}
@if(dsl == GradleDsl.GROOVY) {
sourceDirectory = file("@path").toPath()
}
generate()
}
// Gradle requires that generateJte is run before some tasks
tasks.configureEach {
if (@if (patchKaptOutputs) {name == "kaptGenerateStubsKotlin" || }name == "inspectRuntimeClasspath") {
mustRunAfter("generateJte")
}
}