Message Boards

custom theme build failure in Liferay 7.2

thumbnail
Shiva Lingam K, modified 3 Years ago.

custom theme build failure in Liferay 7.2

New Member Posts: 18 Join Date: 5/9/18 Recent Posts
Hi everyone,               I am working in Liferay 7.2 , i created a custom theme and while buliding it i am getting build failure. here is my build.gradle filebuildscript {
    dependencies {
        classpath group: "com.liferay", name: "com.liferay.gradle.plugins.theme.builder", version: "2.0.4"
    }
    repositories {
        maven {
            url "https://repository-cdn.liferay.com/nexus/content/groups/public"
        }
    }
    }apply plugin: "com.liferay.portal.tools.theme.builder"
dependencies {
    cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "2.1.3"
    parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.styled", version: "4.0.2"
    parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.unstyled", version: "4.0.1"
    portalCommonCSS group: "com.liferay", name: "com.liferay.frontend.css.common", version: "3.0.1"    themeBuilder group: "com.liferay", name: "com.liferay.portal.tools.theme.builder", version: "1.1.7"
}

Here i s the exception: :wars:Airport-theme:buildTheme
:wars:Airport-theme:compileJava UP-TO-DATE
:wars:Airport-theme:buildCSS
Using native Sass compiler
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Parsed /css/clay/atlas-variables.scss in 1772ms
Parsed /css/clay/atlas.scss in 9710ms
Parsed /css/clay/base-variables.scss in 604ms
Parsed /css/clay/base.scss in 5615ms
Parsed /css/clay/bootstrap/bootstrap-grid.scss in 455ms
Parsed /css/clay/bootstrap/bootstrap-reboot.scss in 184ms
Parsed /css/clay/bootstrap/bootstrap.scss in 926ms
Exception in thread "main" com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: Undefined operation: "calc(1.5em + 0.75rem + 2px)-0.0625rem-0.0625rem-1.25rem-0.25rem-0.25rem/2 times 2".
        on line 76 of build/buildTheme/css/clay/variables/_forms.scss
>> bottom-width - $input-border-top-width - ($form-control-tag-group-padding-y * 
   ------------------------------------------^    at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:164)
    at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)
    at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)
    at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)
    at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)
:wars:Airport-theme:buildCSS FAILEDFAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':wars:Airport-theme:buildCSS'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 1

Can anyone help me to find the solution ?