io.knotx.CodegenPlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of knotx-gradle-plugins Show documentation
Show all versions of knotx-gradle-plugins Show documentation
Knot.x Gradle Plugins minimize Knot.x modules Gradle configuration.
package io.knotx
/**
* Precompiled [codegen.gradle.kts][io.knotx.Codegen_gradle] script plugin.
*
* @see io.knotx.Codegen_gradle
*/
class CodegenPlugin : org.gradle.api.Plugin {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("io.knotx.Codegen_gradle")
.getDeclaredConstructor(org.gradle.api.Project::class.java, org.gradle.api.Project::class.java)
.newInstance(target, target)
} catch (e: java.lang.reflect.InvocationTargetException) {
throw e.targetException
}
}
}