Gradle plugin to compile .less files to CSS with LESS CSS pre-processor.
There is a seperate GitHub repo gradle-lesscss-sample that contains a sample Gradle build using this plugin. See the README.md file in that project for complete instructions on how to build, install, and use this plugin.
Eventually you'll be able to install this (or another Gradle LESSCSS plugin) from a Maven repo, but for now you'll have to build it yourself and install into your local Maven repo:
gradle install
gradle build
This plugin requires a download of less-rhino-1.x.x.js and then directly runs the Javascript file with Rhino. See gradle.build
in the sample project.
- Update to more recent LESS
- Publish to a public Maven repo (who can help with this?)
- Use lesscss-java
- More complete sample project (Bootstrap demo?)
- Spock unit tests
- Run LESS under Nashorn?
- Use Native less4j ?
- Integration with Grails resource plugin? (How would that work?)
Licensed under the terms of the Apache Software License 2.0.
This plugin is based upon source code e-mailed to me (with Apache 2 license in the headers) by Luke Daley on March 3, 2012.
When I created this repository there was only one other Gradle LESS CSS plugin out there. Now there are a handful.
-
gradle-less-plugin davidmc24 Bitbucket
Engine: lesscss-java
License: ASL 2.0
Published: Bintray
-
gradle-lesscss-plugin obecker github
Engine: Rhino + less-rhino-1.3.3.js
License: ASL 2.0
Published: Maven Central
-
gradle-less-plugin skhome github
Engine: lesscss-java
License: WTFPL
Not Published
-
lesscss-gradle-plugin koenongena github
Engine: lesscss-java
License: ?
Not Published