Liferay Workspace is continuously being updated with new features. If you created your workspace a while ago, you may be missing out on some of the latest features that could improve your Liferay DXP development experience. Updating your Liferay Workspace is easy; you’ll learn how to do it for Gradle and Maven-based workspaces next.
Gradle
-
Find the latest Liferay Workspace version. To do this, view the Workspace Gradle plugin’s released versions on Liferay’s repository. Copy the version to which you want to upgrade.
-
Open your Liferay Workspace’s
settings.gradle
file. This file resides in your Workspace’s root folder. -
In the
dependencies
block, you’ll find code similar to below:dependencies { classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "[WORKSPACE_VERSION]" }
Update the
com.liferay.gradle.plugins.workspace
dependency’sversion
to the version number you copied in step 1. -
Execute any Gradle command to initiate the update process for your Workspace (e.g.,
blade gw tasks
).
Awesome! You’ve upgraded your Gradle-based Liferay Workspace!
Maven
-
Find the latest Liferay Workspace version. To do this, view the Bundle Support plugin’s released versions on Liferay’s repository. Copy the version to which you want to upgrade.
-
Open your Liferay Workspace’s root
pom.xml
file. -
Within the
plugin
tags, you’ll find code similar to below:<plugin> <groupId>com.liferay</groupId> <artifactId>com.liferay.portal.tools.bundle.support</artifactId> <version>3.4.2</version> ... </plugin>
Update the
com.liferay.portal.tools.bundle.support
artifact’sversion
to the version number you copied in step 1. -
Execute any Maven command to initiate the update process for your Workspace (e.g.,
mvn verify
).
Awesome! You’ve upgraded your Maven-based Liferay Workspace!