legacy-knowledge-base
公開されました Jun. 30, 2025

Gradle tasks not working for new versions

written-by

Adam Kollar

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

learn-legacy-article-disclaimer-text

Issue

We are trying to update our workspace, to do so we have performed the following actions based on a blade init:

  1. Update gradle-wrapper version to 7.3.3
  2. Set in settings.gradle file for "com.liferay.gradle.plugins.workspace" version 10.0.3
  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

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base