jlleitschuh
03/07/2017, 4:13 PMpluginBundle {
vcsUrl = "<https://github.com/JLLeitschuh/ktlint-gradle>"
description = "Provides a convenient wrapper plugin over the ktlint project."
tags = listOf("ktlint", "kotlin", "linting")
plugins(delegateClosureOf<NamedDomainObjectContainer<PluginConfig>> {
create("ktlintPlugin") {
id = "org.jlleitschuh.gradle.ktlint"
displayName = ""
}
})
}
/**
* Retrieves or configures the [pluginBundle][com.gradle.publish.PluginBundleExtension] project extension.
*/
fun Project.pluginBundle(configure: com.gradle.publish.PluginBundleExtension.() -> Unit = {}) =
extensions.getByName<com.gradle.publish.PluginBundleExtension>("pluginBundle").apply { configure() }