io.knotx.UnitTestPlugin.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 [unit-test.gradle.kts][io.knotx.Unit_test_gradle] script plugin.
*
* @see io.knotx.Unit_test_gradle
*/
class UnitTestPlugin : org.gradle.api.Plugin {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("io.knotx.Unit_test_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
}
}
}