com.autonomousapps.kit.gradle.Plugins.kt Maven / Gradle / Ivy
package com.autonomousapps.kit.gradle
import com.autonomousapps.kit.render.Element
import com.autonomousapps.kit.render.Scribe
public class Plugins(
private val plugins: MutableList = mutableListOf(),
) : Element.Block {
public constructor(vararg plugins: Plugin) : this(plugins.toMutableList())
override val name: String = "plugins"
public val isEmpty: Boolean = plugins.isEmpty()
override fun render(scribe: Scribe): String = scribe.block(this) { s ->
plugins.forEach { it.render(s) }
}
public companion object {
@JvmField
public val EMPTY: Plugins = Plugins()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy