Link Search Menu Expand Document

Setup the Environment

Creating Liferay Workspace

Create a folder, lrworkspace and go to the directory. Open up a console and generate Liferay Workspace as follows.

mkdir lrworkspace
cd lrworkspace
blade init -v 7.3

Configure the gradle-local.properties

Navigate to the created directory.

cd ./lrworkspace

Then create gradle-local.properties. Assuming you are using Liferay 7.3 GA6, set as below. Also replace /your/bundle/root/path/here! for liferay.workspace.home.dir property.

liferay.workspace.target.platform.version=7.3.5
liferay.workspace.home.dir=/your/bundle/root/path/here!
target.platform.index.sources=true

Liferay now leverages Target Platform to resolve dependencies of libraries in build.gradle. For more details, please see links below:

What’s next?

Let’s generate a service!


Table of contents