Message Boards
Gradle Build Issue - Theme
Gradle Build Issue - Theme
Liferay Master Posts: 722 Join Date: 12/19/07 Recent PostsHi,
We are getting this below exception when building the theme. We are usign 7.2 and building the plugins in proxy enviroinment. All the plugins are successfully build from liferay repository... but this below depedency has this issue.
Tried all possible way but no luck.
1. Added proxy properties in gradle.properties
2. Added SSL certificates into java security lib
But no luck.... is there any way that i can download those files and added into gradle cache folder manually?
Here is the build.gradle file:
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.theme.builder", version: "2.0.7"
}repositories {
maven {
url "http://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
}
plugins {
id "com.eriwen.gradle.js" version "2.14.1"
}
apply plugin: "com.liferay.portal.tools.theme.builder"
dependencies {
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: "4.0.0"
themeBuilder group: "com.liferay", name: "com.liferay.portal.tools.theme.builder", version: "1.1.7"
cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "3.0.0"
}
Exception:
Could not resolve all files for configuration ':wars:tawuniya-store-theme:cssBuilder'.
Here is the build.gradle :
> Could not download com.liferay.sass.compiler.ruby.jar (com.liferay:com.liferay.sass.compiler.ruby:2.0.5)
> Could not get resource 'https://repo.maven.apache.org/maven2/com/liferay/com.liferay.sass.compiler.ruby/2.0.5/com.liferay.sass.compiler.ruby-2.0.5.jar'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/com/liferay/com.liferay.sass.compiler.ruby/2.0.5/com.liferay.sass.compiler.ruby-2.0.5.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download jruby-complete.jar (org.jruby:jruby-complete:9.2.7.0)
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jruby/jruby-complete/9.2.7.0/jruby-complete-9.2.7.0.jar'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/jruby/jruby-complete/9.2.7.0/jruby-complete-9.2.7.0.jar'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target* Try: