[hibernate-dev] Gradle, ORM and Mac OS X

Scott Marlow smarlow at redhat.com
Wed Jul 2 14:36:54 EDT 2014


On 06/30/2014 06:27 AM, Emmanuel Bernard wrote:
> I had a lot of hurdles to make Hibernate ORM run and build on Mac OS X and IntelliJ IDEA so here are a few tidbits:
>
> I give Gradle 1GB
>
>      export GRADLE_OPTS="-Xmx1024M"

Are you on master or an earlier ORM branch?  I have 
GRADLE_OPTS="-Xmx1024m -Xms512m" and running the testsuite on Fedora 
takes all available CPU (feels like my ThinkPad is on its knees until 
the build completes).


>
> Gradle hangs on me after ~ 2300 to 2400 tests for hibernate-core subsystem. Basically at least one of the worker hangs for ever.
> To work around that I forced Gradle to use one thread
>
>      ./gradlew -no-daemon --parallel-threads 1 clean test

Thanks for the tip, I will try this.

>
> IntelliJ IDEA does not import ORM properly on Mac OS X. I tried both to run IDEA with Java 6 (default) and Java 7 (hacked). The way around that is to use `./gradlew idea` and open the project in the IDE. You then have to manually add the generated source directory in a few modules.
> Things are explained here: https://community.jboss.org/wiki/ContributingToHibernateUsingIntelliJ
>
> Emmanuel
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>



More information about the hibernate-dev mailing list