All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fgiannesini.libsass.gradle.plugin.LibSassGradlePlugin Maven / Gradle / Ivy

There is a newer version: 1.4
Show newest version
package com.github.fgiannesini.libsass.gradle.plugin;

import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.tasks.TaskContainer;

import com.github.fgiannesini.libsass.gradle.plugin.extension.LibSassParameters;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.CompileLibSassTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.CompileLibSassWithWatchTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.InstallBourbonTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.InstallCompassTask;

/**
 * Gradle plugin declaration
 */
public class LibSassGradlePlugin implements Plugin {

    @Override
    public void apply(final Project project) {
        // Class for definition of availables parameters
        project.getExtensions().create("libSassParameters",
                LibSassParameters.class);

        final TaskContainer tasks = project.getTasks();

        // Task for libsass compilation
        tasks.create("compileLibSass", CompileLibSassTask.class);

        // Task for continous compilation
        tasks.create("compileLibSassWithWatch",
                CompileLibSassWithWatchTask.class);

        // Task to install Bourbon sources
        tasks.create("installBourbon", InstallBourbonTask.class);

        // Task to install Compass sources
        tasks.create("installCompass", InstallCompassTask.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy