Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcellus Tavares marcellustavares

View GitHub Profile
View gist:687b3413957d6bcd52a6705c04942ab6
import com.jetbrains.python.envs.PythonEnvsPlugin
import com.liferay.gradle.util.FileUtil
import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
classpath group: "gradle.plugin.com.jetbrains.python", name: "gradle-python-envs", version: "0.0.30"
View gist:25715ec1f387c20a8a2e6113343b2824
import com.jetbrains.python.envs.PythonEnvsPlugin
import com.liferay.gradle.util.FileUtil
import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
classpath group: "gradle.plugin.com.jetbrains.python", name: "gradle-python-envs", version: "0.0.30"
View gist:32abf31390ebf07213e7320be5979a16
import com.jetbrains.python.envs.PythonEnvsPlugin
import com.liferay.gradle.util.FileUtil
import org.apache.tools.ant.taskdefs.condition.Os
View gist:3696f95b8ca58f71f683a30ec956e731
import com.jetbrains.python.envs.PythonEnvsPlugin
import com.liferay.gradle.util.FileUtil
import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
classpath group: "gradle.plugin.com.jetbrains.python", name: "gradle-python-envs", version: "0.0.30"
View build-ext-python.gradle
import com.jetbrains.python.envs.PythonEnvsPlugin
import com.liferay.gradle.util.FileUtil
import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
classpath group: "gradle.plugin.com.jetbrains.python", name: "gradle-python-envs", version: "0.0.30"
View gist:c6a8e4be58240b4dce88ee63a630e403
➜ .envs git:(7.0.x-private) tree -a
.
└── osb-asah-spark
├── bin
│   ├── __pycache__
│   │   └── find_spark_home.cpython-36.pyc
│   ├── activate
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate.ps1
View gist:e83392dceedbcf5487c8907a3d6896c1
➜ osb-asah-spark git:(7.0.x-private) tree
.
├── Dockerfile
├── build
│   ├── libs
│   │   ├── osb-asah-spark.jar
│   │   └── osb-asah-spark.py
│   ├── python-build
│   │   ├── bin
│   │   │   ├── pyenv-install
View gist:22143e06177bb80cda864514089c9d97
bin ./catalina.sh jpda start && tail -f ../logs/catalina.out
\Using CATALINA_BASE: /Users/marcellustavares/projects/bundles/tomcat-9.0.17
Using CATALINA_HOME: /Users/marcellustavares/projects/bundles/tomcat-9.0.17
Using CATALINA_TMPDIR: /Users/marcellustavares/projects/bundles/tomcat-9.0.17/temp
Using JRE_HOME: /Users/marcellustavares/.jenv/versions/1.8
Using CLASSPATH: /Users/marcellustavares/projects/bundles/tomcat-9.0.17/bin/bootstrap.jar:/Users/marcellustavares/projects/bundles/tomcat-9.0.17/bin/tomcat-juli.jar
Tomcat started.
Listening for transport dt_socket at address: 8000
15-Jan-2020 05:05:16.335 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [456] milliseconds
Loading jar:file:/Users/marcellustavares/projects/bundles/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
View gist:de0e01c36e3074f5f3a27b20f53901c1
Jan-2020 01:06:43.803 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.liferay.portal.spring.context.PortalContextLoaderListener]
java.lang.RuntimeException: org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.configuration.persistence.impl [16]
Unresolved requirement: Import-Package: com.liferay.portal.kernel.util; version="[9.12.0,10.0.0)"
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:305)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4682)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
View interests-example.json
{
"results":[
{
"dateRecorded":"2019-05-15T00:00:00.000Z",
"name":"productize best-of-breed web services",
"ownerId":"337984659206412898",
"ownerType":"individual",
"score":2.614959778036198,
"views":1
},