A Liferay Workspace is a generated environment that is built to hold and manage your Liferay projects. It is intended to aid in the management of Liferay projects by providing various build scripts and configured properties.
Liferay Workspace is the recommended environment for your code migration; therefore, it will be the assumed development environment in this section.
Continue on to set up a workspace.
You must set up your workspace development environment before you begin upgrading your custom apps. If you don’t have an existing workspace, follow the step for creating one. If you have an existing workspace, follow the step on importing it into the Upgrade Planner.
Initiating this step in the Upgrade Planner loads the Liferay Workspace Project wizard.
Give your new workspace a name.
Choose the build type (Gradle or Maven) you prefer for your workspace environment and future Liferay projects.
You now have a new Liferay Workspace available in the Upgrade Planner!
For more information on creating a Liferay Workspace outside the planner, see the Creating a Liferay Workspace section.
If you already have an existing 7.x Liferay Workspace, you should import it into the planner. Once you initiate this step, you’re given a File Explorer/Manager to select your existing workspace. After selecting it, the workspace is imported into the Project Explorer.
For more information importing a workspace into your IDE, see this article.
You must configure your workspace with the Liferay DXP version you intend to upgrade to.
Configure your workspace by setting a product key. This automatically sets the Target Platform version, Docker image name, bundle URL, and other default settings for the Liferay DXP release.
Once your workspace is configured for the Liferay DXP version you’re upgrading to,
you can initialize the server bundle. This involves downloading the bundle and
extracting it into its folder (e.g.,
bundles). If you have an existing
workspace already equipped with an older Liferay bundle, this deletes the old
bundle and initializes the new one.
If you’re upgrading your code manually and working in Dev Studio, you can do this by right-clicking the workspace project and selecting Liferay → Initialize Server Bundle. See the Installing a Server in IntelliJ article if you use IntelliJ instead. Visit the Managing Your Liferay Server with Blade CLI article for information on how to do this via the command line.
.config files are preferred over
.cfg files because they allow specifying a property value’s type, and allow multi-valued properties.