After grails 3 upgrade, less file are not picked up for compilation

777 Views Asked by At

I am trying to upgrade one of my projects to grails 3.x. Most of the things are working as expected, except the less pipeline plugin.

Here is my build.gradle:

buildscript {
    ext {
        grailsVersion = project.grailsVersion
    }
    repositories {
        mavenCentral()
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.6.7'
        classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.6.7'
        classpath "org.grails.plugins:hibernate:4.3.10.5"
    }
}

....
apply plugin: "asset-pipeline"
....
dependencies {
    ...
    runtime "org.grails.plugins:asset-pipeline"
    runtime 'com.bertramlabs.plugins:asset-pipeline-core:2.6.7'
    runtime 'com.bertramlabs.plugins:less-asset-pipeline:2.6.7'
}

In config I have this line (which suppose to control the compilation): grails.assets.less.compiler = 'less4j'

Also, my asserts folder looks like this: enter image description here

When I am running the app, none of the less files getting compiled and/or included on the page.

My main.less file looks like this:

@import "../vendor/bootstrap/less/bootstrap.less";
@import "../vendor/font-awesome/less/font-awesome.less";
@import "rrm.less";

rest of a file...

What am I missing?

Thanks,

1

There are 1 best solutions below

0
On

This kind of error look like linked to there is one more ../ on your js with require