Skip to content

Instantly share code, notes, and snippets.

@gamerson
gamerson / error.txt
Created December 18, 2019 23:58
gradle5 BOM error
~/tmp/fizzbuzz gw build --stacktrace
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':buildTheme'.
> Could not resolve all files for configuration ':parentThemes'.
> Could not find com.liferay:com.liferay.frontend.theme.styled:.
Required by:
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
... 11 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
at com.liferay.extensions.languageserver.completions.PropertiesCompletion.lambda$getCompletions$1(PropertiesCompletion.java:120)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
!SESSION 2019-10-02 07:14:13.960 -----------------------------------------------
eclipse.buildId=4.11.0.I20190307-0500
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
This is a continuation of log file C:\Users\eprafpr\eclipse-workspace\maven-bnd-issue\.metadata\.bak_0.log
Created Time: 2019-10-02 07:15:50.109
package com.liferay.stats.rest.application;
import java.util.Collections;
import java.util.Set;
import javax.ws.rs.GET;
import javax.ws.rs.HEAD;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
@gamerson
gamerson / build.gradle
Last active June 14, 2019 22:22
Spring MVC Portlet template tests
import java.security.MessageDigest
import static groovy.io.FileType.FILES
import groovy.transform.Immutable
import groovy.transform.ToString
task buildSampleProjects
task compareSampleProjects
task generateSampleProjects
@gamerson
gamerson / pluginInfo-task.gradle
Last active August 11, 2023 23:25
Script to print info for all plugins applied to a given project
import java.nio.file.FileSystem
import java.nio.file.FileSystems
import java.nio.file.FileVisitResult
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.nio.file.SimpleFileVisitor
import java.nio.file.attribute.BasicFileAttributes
allprojects {
Configuration on demand is an incubating feature.
> Task :showPlugins
org.gradle.eclipse-wtp = org.gradle.plugins.ide.eclipse.EclipseWtpPlugin
org.gradle.war = org.gradle.api.plugins.WarPlugin
org.gradle.java = org.gradle.api.plugins.JavaPlugin
org.gradle.base = org.gradle.api.plugins.BasePlugin
org.gradle.idea = org.gradle.plugins.ide.idea.IdeaPlugin
org.gradle.application = org.gradle.api.plugins.ApplicationPlugin
org.gradle.eclipse = org.gradle.plugins.ide.eclipse.EclipsePlugin
@gamerson
gamerson / gist:a846d5e27a2a0f811d9f4743c143e7d2
Created April 3, 2019 18:06
./gradlew startDxpCloudLocal log
~/my repos/liferaygreg(master ✔) ./gradlew startDxpCloudLocal
..:: Liferay Workspace for DXP Cloud generated from archetype 'wedeploy-dxpcloud-workspace:2.3.0' ::..
:wedeploy:clean
:wedeploy:buildDxpCloudServices
Collecting static DXP Cloud files from '/Users/greg/my repos/liferaygreg/wedeploy':
* file 'wedeploy/database/wedeploy.json'
* file 'wedeploy/liferay/license/common/license.xml'
* file 'wedeploy/liferay/config/uat/portal-env.properties'
* file 'wedeploy/liferay/config/local/portal-env.properties'
* file 'wedeploy/liferay/config/common/com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config'
@gamerson
gamerson / BuildDB-portal.txt
Created October 5, 2018 14:46
BuildDB classpath when invoked from the portal
Starting process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/bin/java''.
Working directory: /Users/greg/dev/repos/liferay/liferay-portal/modules/apps/journal/journal-service
Command: /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/bin/java
-Dexternal-properties=com/liferay/portal/tools/dependencies/portal-tools.properties
-Xmx384m
-Dfile.encoding=UTF-8
-Duser.country=US
-Duser.language=en
-Duser.variant
-cp
@gamerson
gamerson / SoyPortlet.java
Created August 16, 2018 21:07
Liferay 7.1 Soy Portlet Render Error
@Component(
immediate = true,
property = {
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=false",
"com.liferay.portlet.single-page-application=false",
"javax.portlet.display-name=hello Portlet",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=View",
"javax.portlet.name=" + HelloPortletKeys.Hello,