Issue
We are trying to update our workspace, to do so we have performed the following actions based on a blade init:
- Update gradle-wrapper version to 7.3.3
- Set in settings.gradle file for "com.liferay.gradle.plugins.workspace" version 10.0.3
- In gradle.properties we set liferay.workspace.product as dxp-2024.q1.11
In this case the build fails indicating that is not able to resolve dependencies version for com.liferay.portal:release.dxp.api
> Could not resolve all files for configuration ':modules:custom-fields-activator-module:compileClasspath'.
> Could not find com.liferay.portal:release.dxp.api:.
Required by:
project :modules:custom-fields-activator-module
Environment
- 2024.Q1.11
Resolution
- The error occurs due to the releases.json file is not getting updated each time a build is initiated.
- The cached file is only good for 7 days, on the 8th day the tooling will fetch the update automatically, but errors like this can occur if there is a new version released in the meantime.
-
In case you face this kind of errors, there is an option to trigger the update manually by running
blade --refresh-releases.
With this command it will automatically fetch the releases.json file's latest version.
Additional Information