Message Boards

Gradle Module Project is not creating

thumbnail
Nirav Prajapati, modified 4 Years ago.

Gradle Module Project is not creating

Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Dear Friends,

I am using  LiferayProjectSDKwithDevStudioDXP-201906040025-windows-installer.

While creating a new Service-builder/mvc-portlet module project, it's not showing in Project Explorer or in Gradle Task. But for that module's file and folders are creates in workspace-project module folder. Moreover, by Refresh Gradle Project, it's not showing.

Following are the few lines of .logs file of my developer studio work-space.

java.lang.OutOfMemoryError: GC overhead limit exceeded
!ENTRY org.eclipse.buildship.core 2 2 2019-11-08 16:49:03.406
!MESSAGE Synchronize project nirav-demo-liferay-workspace failed due to an error in the referenced Gradle build.
!STACK 0
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.10.2-bin.zip'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)


!ENTRY org.eclipse.buildship.core 2 2 2019-11-08 16:49:03.432
!MESSAGE Synchronize Gradle projects with workspace failed due to an error in the referenced Gradle build.
!STACK 0
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.10.2-bin.zip'.


!ENTRY org.eclipse.buildship.core 2 3 2019-11-08 18:02:26.240
!MESSAGE Synchronize Gradle projects with workspace failed due to an error connecting to the Gradle build.
!STACK 0
org.gradle.tooling.BuildActionFailureException: The supplied build action failed with an exception.



I have increade JVM memory with 2GB also.
I have attached a .log (D:\LiferayDXP\support_app\nirav_ws\.metadata)
Please help me with it.
Thanks in advance.

Attachments:

thumbnail
Lawrence Lee, modified 4 Years ago.

RE: Gradle Module is not creating

New Member Posts: 15 Join Date: 3/11/10 Recent Posts
Hi Nirav,Would you be able to provide a list of steps that you took to encounter this problem? 
thumbnail
Nirav Prajapati, modified 4 Years ago.

RE: Gradle Module is not creating

Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Hi Lawrence,
Following are the steps which I followed.
1. Install Developer Studio
2. Create workspace and start the studio by pointing it.
3. Get the workspace project from TFS server.
4. Create new module project.

Before step 3 I have created my own new workspace project but in that same was happen to.
thumbnail
Gregory Amerson, modified 4 Years ago.

RE: Gradle Module Project is not creating

Liferay Legend Posts: 1123 Join Date: 2/16/10 Recent Posts
Hello Nirav,Can you add more memory to your gradle daemon and try again? https://stackoverflow.com/a/47454640/620537
thumbnail
Nirav Prajapati, modified 3 Years ago.

RE: Gradle Module Project is not creating

Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Hello Gregory Amerson,
I have increase memory for Gradle and it's working absolutely fine.
Thanks You