play-lessc
play-lessc copied to clipboard
0.1.2 does not work with a Java play 2.2.3 app
Hello, I've been trying to set up your plugin into my play 2.2.3 Java app so that I can use the latest version of lessc to be able to include things like this:
@import (less) url(http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css);
I've tried this:
def customLessEntryPoints(base: File): PathFinder = (
(base / "app" / "assets" / "stylesheets" * "*.less")
)
play.Project.playScalaSettings ++ lesscSettings
lessEntryPoints := Nil
lesscEntryPoints in Compile <<= baseDirectory(customLessEntryPoints)
// End of my build.sbt
And it works but play thinks it is a Scala project so I get loads of trouble trying to run tests and compile from eclipse. Adding this line to the end of my build sbt:
play.Project.playJavaSettings
Solves my problems with eclipse because it is now a Java project but breaks your plugin. It will go back to the default less compiler which does not support (less) imports.
To sum up, I reckon this plugin only works with Play 2.2.3 Scala projects and not with Java ones for some reason I can't figure out (I've been through the source code and can't find any clue).
Any advice?
Thanks a lot