Issue
- Facing an error when attempting to initialize a Liferay DXP bundle in the user's Liferay workspace.
-
Steps to reproduce:
1. Create a Liferay workspace project.
2. Set the following in gradle.properties:liferay.workspace.bundle.dist.include.metadata = true
3. Run the initBundle.
liferay.workspace.modules.dir = modules
liferay.workspace.themes.dir = themes
liferay.workspace.wars.dir = modules
microsoft.translator.subscription.key =
liferay.workspace.product = dxp-7.4-u90
target.platform.index.sources = false
Expected Behavior: Bundle initializes successfully
Observed Behavior: Bundle fails to initialize due to the following error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':verifyBundle'.
Invalid checksum for liferay-dxp-tomcat-7.4.13.u90-20230816105706384.tar.gz. Expected 575992a565f25c9eccab2ac56702f344, but got 90e7c56b53b3f1228fb7a6930c
Environment
- Liferay DXP 7.4
Resolution
- Ensure that the user is utilizing the newest release of the Liferay Developer in the environment.
- If the user is generating the workspace with the older version of the workspace plugin, it might be the value that are no longer maintained. Therefore, use the updated version of Workspace. This will cause the workspace to reference the actively maintained releases.json file for all of the bundle metadata, including the update sha512 checksums.
-
Steps to resolve the issue:
1. Please ensure Blade CLI is up-to-date. Run the following command to check for and apply updates: blade update
2. Create a new Liferay workspace with DXP 7.4, use Blade CLI with the following command, specifying the desired version and workspace name for example:blade init -v dxp-7.4-u90 Test-workspace
3. Import the newly created workspace to Liferay Developer Studio.
4. After importing, check the setting,gradle properties and check the com.liferay.gradle.plugins.workspace" version should be "12.0.0"(Latest)
5. Then, to install the bundle, run the initBundle task from the Gradle Tasks within the workspace.
Result: The build is successful:
Task :downloadBundle
Download https://releases-cdn.liferay.com/dxp/7.4.13-u90/liferay-dxp-tomcat-7.4.13.u90-20230816105706384.7z
Task :verifyBundle
Task :initBundle
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 17s
4 actionable tasks: 4 executed