io.knotx.MavenPublishPlugin.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 [maven-publish.gradle.kts][io.knotx.Maven_publish_gradle] script plugin.
*
* @see io.knotx.Maven_publish_gradle
*/
class MavenPublishPlugin : org.gradle.api.Plugin {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("io.knotx.Maven_publish_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
}
}
}