Gradle Plugins

Maintained by aalmiray

Summary

A gradle plugin for compiling LESS to CSS, compatible with less v1.7.0
Features:
The plugin is based on lesscss, which:

Website https://github.com/houbie/lesscss-gradle-plugin
Author houbie (Ivo Houbrechts)
Version 1.0.0-less-1.7.0

Usage

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath "com.github.houbie:lesscss-gradle-plugin:1.0.0-less-1.7.0"
    }
}

apply plugin: "lesscss"

lessc {
    sourceDir "customized/less", "standard/less"
    include "**/*.less", "**/*.js"
    exclude "imports/**/*"
    destinationDir = "$buildDir/css"
    options.sourceMap = true
}

lesscDaemon {
    lesscTaskName = "customLesscTask" //When you defined additional lessc tasks. Default: 'lessc'
    interval = 200 //Scan interval in milliseconds. Default: 500
    engine = "commandline"
    lesscExecutable = "/opt/local/bin/lessc"
}