Liferay studio: Failed to apply plugin 'com.liferay.workspace'

Scarletake Bwi, modified 1 Year ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi 

I encountered an exception after refreshing my Gradle project, and I would appreciate any assistance in resolving it. Below is the error message:


FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\LiferayWorkspacewithDevStudio\cip-workspace\settings.gradle' line: 23

* What went wrong:
A problem occurred evaluating settings 'cip-workspace'.
> Failed to apply plugin 'com.liferay.workspace'.
   > Could not create an instance of type com.liferay.gradle.plugins.workspace.WorkspaceExtension.
      > Unable to get product info for :portal-7.4-ga31

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 53s
 

This issue has occurred before, and it seems to be related to Liferay's server. However, this time, it is taking significantly longer to resolve.

Could you please provide any insights or possible solutions? Any help would be greatly appreciated.

Thank you in advance for your time and support.

 

btw, is there any way to fix the gradle and no need to link to server?

7.4
Jamie Sammons, modified 12 Months ago. New Member Post: 1 Join Date: 3/30/25 Recent Posts

I'm experiencing the same problem. The --stacktrace output shows:

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        ... 175 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        ... 175 more

 

This occurs with both a Liferay 7.0 and a Liferay 7.1 workspace, using Gradle 5.6.1.