Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
CSS Builder 3.0 breaks build
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.
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.
Thank you, very helpful
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"
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"
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™