If your theme uses the Liferay Theme Generator, the gulp upgrade task automatically updates your theme’s metadata as part of the upgrade process. If you’re developing your theme in an environment other than the themes generator, follow the steps below to update your theme’s metadata manually:
-
Open your theme’s
liferay-plugin-package.properties
file and change theliferay-versions
property value to7.1.0+
:liferay-versions=7.1.0+
-
Open the
liferay-look-and-feel.xml
file and specify7.1.0+
as the compatibility version:<look-and-feel> <compatibility> <version>7.1.0+</version> </compatibility> ... </look-and-feel>
-
If your theme uses the Liferay Theme Generator, open the
package.json
file and update the file’s Liferay version references to7.1
. Update theliferayTheme
’stemplateLanguage
toftl
(since Velocity theme templates are no longer supported), and update itsversion
to7.1
:"liferayTheme": { ... "templateLanguage": "ftl", "version": "7.1" },
-
Update the
liferay-theme-deps-7-0
dependency toliferay-theme-deps-7.1
with the version below, and add theliferay-theme-tasks
dependency as shown in the example configuration below:"devDependencies": { "gulp": "3.9.1", "liferay-theme-tasks": "8.0.0-alpha.6", "liferay-theme-deps-7.1": "8.0.0-alpha.6" },
Your theme’s Liferay version references are updated for Liferay DXP 7.1.