You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/21 19:06:26 UTC

[GitHub] [netbeans] matthiasblaesing commented on pull request #4985: Use Project Dictated JVM for Gradle Discovery

matthiasblaesing commented on PR #4985:
URL: https://github.com/apache/netbeans/pull/4985#issuecomment-1322519840

   My personal worst-case is developing for liferay-portal. It uses a custom patched gradle version and requires JDK 8 to build. This seems to improve the situation a lot! This is not yet a comprehensive test, but this is what I did:
   
   I build NetBeans from this branch. Additionally I had to adjust the gradle deamon settings like this (`~/.gradle/gradle.properties`):
   
   ```properties
   org.gradle.jvmargs=-Xms512m -Xmx4g
   liferay.home=/home/matthias/src/liferay-portal/bundles/
   ```
   
   The first option give the gradle daemon enough space to handle the projects and the second is needed as the liferay build system sets this property from the ant invocation that starts the build. I have to restructure the build minimally, so that the grade wrapper is found. I build liferay once using `ant all`, then I copy the `gradle` directory from the main directory to `modules`. In the ` modules/gradle/wrapper/gradle-wrapper.properties`  I change the `distributionUrl` to `distributionUrl=../../../tools/gradle-6.9.2-LIFERAY-PATCHED1-bin.zip`. Finally the patched gradle needs to be renamed to fit the gradle versioning scheme from ` gradle-6.9.2.LIFERAY-PATCHED-1-bin.zip` to `gradle-6.9.2-LIFERAY-PATCHED1-bin.zip` .
   
   Project loading takes time, but it feels nice to be able to open the projects in a sane manner. Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists