com.github.mictaege.jitter.plugin.JitterTask.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 org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import static com.github.mictaege.jitter.plugin.JitterUtil.FLAVOUR_PROP
class JitterTask extends DefaultTask {
FlavourCfg flavour
@TaskAction
void run() {
System.properties.setProperty(FLAVOUR_PROP, flavour.name)
}
}