com.github.mictaege.jitter.plugin.FlavourCfg.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jitter-plugin Show documentation
Show all versions of jitter-plugin Show documentation
The jitter-plugin is a Gradle plugin to build and distribute different flavours of an application from a single source base.
package com.github.mictaege.jitter.plugin
import groovy.transform.Canonical
import org.gradle.api.Action
import org.gradle.util.ConfigureUtil
@Canonical
class FlavourCfg {
String name
CriticalTermsCfg criticalTerms = new CriticalTermsCfg()
void criticalTerms(Closure closure) {
ConfigureUtil.configure(closure, criticalTerms)
}
void criticalTerms(Action super CriticalTermsCfg> action) {
action.execute(criticalTerms)
}
}