RE: CSS Builder 3.0 breaks build

thumbnail
Christoph Rabel, modified 6 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Today css builder 3.0.0 plugin was released to the maven repository and it broke at least one of our 7.0 gradle theme builds. We found the problem, I am posting this here so that it can be found by others who might be affected too.

The buildCSS step fails with:
:wars:Theme:buildCSS
Was passed main parameter 'sass.append.css.import.timestamps=true' but no main parameter was defined in your arg class
Usage: java -jar com.liferay.css.builder-3.0.0.jar [options]
  Options:
...
The problem stems from a commit that changed the parameters, sass.append.css.import.timestamps (and several others) don't exist anymore. To resolve this, you need to add the following dependency to your build.gradle:

dependencies {
   cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "2.1.3"
}

This forces the build to use the older 2.1.3 version.
Артем Карузин, modified 6 Years ago. New Member Posts: 2 Join Date: 10/30/15 Recent Posts
Thank you, very helpful
thumbnail
David Truong, modified 6 Years ago. Expert Posts: 322 Join Date: 3/24/05 Recent Posts
Sorry guys!  We typically hard code these dependencies into the templates but we missed it for our WAR-based templates.  Our next set of templates will have these dependencies coded in so you won't run into these issues next time.

As a precaution... you may want to include a different dependency: 
7.0 it should be:
portalCommonCss group: "com.liferay", name: "com.liferay.frontend.common", version: "2.0.3"
7.1 it should be:
portalCommonCss group: "com.liferay", name: "com.liferay.frontend.common", version: "3.0.1"