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
class JitterTask extends DefaultTask {
String flavour
@TaskAction
void run() {
System.properties.setProperty("jitter.active.flavour", flavour)
}
}