nebula.plugin.ospackage.daemon.DaemonExtension.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nebula-ospackage-plugin Show documentation
Show all versions of nebula-ospackage-plugin Show documentation
Opinionated plugins that wrap the gradle-ospackage-plugin
package nebula.plugin.ospackage.daemon
import groovy.transform.Canonical
import org.gradle.api.DomainObjectCollection
import org.gradle.util.ConfigureUtil
@Canonical
class DaemonExtension {
final DomainObjectCollection daemons
// TBD Add defaults, like user name for all daemons
def daemon(Closure configure) {
def definition = new DaemonDefinition()
ConfigureUtil.configure(configure, definition)
daemons.add(definition)
return definition
}
}