Themebuilder Gradle Plugin / thumbnail.png

Andreas Scheck, modified 9 Years ago. New Member Posts: 10 Join Date: 9/24/08 Recent Posts
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
thumbnail
Marco Abbuonandi, modified 8 Years ago. New Member Posts: 4 Join Date: 12/27/14 Recent Posts
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"
}
thumbnail
Marco Abbuonandi, modified 8 Years ago. New Member Posts: 4 Join Date: 12/27/14 Recent Posts
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.
thumbnail
Marco Abbuonandi, modified 8 Years ago. New Member Posts: 4 Join Date: 12/27/14 Recent Posts
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()