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
Themebuilder Gradle Plugin / thumbnail.png
Hi,
we're migrating our LR 6.x themes to LR7. Starting point was the sample project from liferay-blade-samples/liferay-gradle/blade.theme. Everything is working nice so far except for the fact, that the thumbnail picture is the Liferay default and not the one I put into the images folder.
My steps to reproduce:
1. make copy of liferay-blade-samples/liferay-gradle/blade.theme
2. place a thumbnail.png into src/main/webapps/images
3. ../gradlew buildTheme
Result: the image in build/buildTheme/images/thumbnail.png is not the one I placed into the webapps/images folder
Maybe this is not a big issue and I'm doing something wrong?
best regards,
Andreas
we're migrating our LR 6.x themes to LR7. Starting point was the sample project from liferay-blade-samples/liferay-gradle/blade.theme. Everything is working nice so far except for the fact, that the thumbnail picture is the Liferay default and not the one I put into the images folder.
My steps to reproduce:
1. make copy of liferay-blade-samples/liferay-gradle/blade.theme
2. place a thumbnail.png into src/main/webapps/images
3. ../gradlew buildTheme
Result: the image in build/buildTheme/images/thumbnail.png is not the one I placed into the webapps/images folder
Maybe this is not a big issue and I'm doing something wrong?
best regards,
Andreas
Hi,
I have the same problem.
liferay 7 CE GA3, IDE 3.0.1 and gradle-3.3
The following file build.gradle:
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.theme.builder", version: "2.0.2"
}
repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
apply plugin: "com.liferay.portal.tools.theme.builder"
dependencies {
parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.styled", version: "2.0.13"
parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.unstyled", version: "2.0.13"
portalCommonCSS group: "com.liferay", name: "com.liferay.frontend.css.common", version: "2.0.3"
themeBuilder group: "com.liferay", name: "com.liferay.portal.tools.theme.builder", version: "1.1.3"
}
I have the same problem.
liferay 7 CE GA3, IDE 3.0.1 and gradle-3.3
The following file build.gradle:
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.theme.builder", version: "2.0.2"
}
repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
apply plugin: "com.liferay.portal.tools.theme.builder"
dependencies {
parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.styled", version: "2.0.13"
parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.unstyled", version: "2.0.13"
portalCommonCSS group: "com.liferay", name: "com.liferay.frontend.css.common", version: "2.0.3"
themeBuilder group: "com.liferay", name: "com.liferay.portal.tools.theme.builder", version: "1.1.3"
}
Hi,
If I use gulp it works.
With gradle does not update my thumbnail in the build, but if I add screenshot.png in the path images/, it works and
the image 'thumbnail' is updated in the build.
If I use gulp it works.
With gradle does not update my thumbnail in the build, but if I add screenshot.png in the path images/, it works and
the image 'thumbnail' is updated in the build.
Adding the screenshot.png works because in the ThemeBuilder "com.liferay.portal.tools.theme.builder" code there is the check
if exists images/screenshot.png loads thumbnail. The method is _writeScreenshotThumbnail()
if exists images/screenshot.png loads thumbnail. The method is _writeScreenshotThumbnail()