com.eriwen.gradle.css.CssExtension.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-css-plugin Show documentation
Show all versions of gradle-css-plugin Show documentation
A Gradle plugin for working with CSS.
The newest version!
package com.eriwen.gradle.css
import com.eriwen.gradle.css.source.CssSourceSetContainer
import com.eriwen.gradle.css.source.internal.DefaultCssSourceSetContainer
import org.gradle.api.Project
import org.gradle.api.internal.file.FileResolver
import org.gradle.internal.reflect.Instantiator
import org.gradle.util.ConfigureUtil
class CssExtension {
public static final NAME = "css"
final CssSourceSetContainer source
CssExtension(Project project, Instantiator instantiator, FileResolver fileResolver) {
source = instantiator.newInstance(DefaultCssSourceSetContainer, project, instantiator, fileResolver)
}
void source(Closure closure) {
ConfigureUtil.configure(closure, source)
}
}