Error persistenceField is null when building portlet for Quarterly Release versions
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- When trying to build a custom portlet for a quarterly release version, the build fails with the following error:
-
persistenceField is null
Environment
-
com.liferay.gradle.plugins.workspace version is less than 10.0.0
Resolution
- Visit your Liferay Workspace based on Gradle then edit the file
settings.gradle and update the version of the com.liferay.gradle.plugins.workspace to 10.0.0 at least. This is mandatory because starting from this version the quarterly releases got supported.
- In the same Liferay Workspace, edit the file
gradle.properties and set liferay.workspace.product=dxp-2024.q1.1. You may also pick any other quarterly release you want.
Did this article resolve your issue ?