Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
Vishwas Babu A J edited this page Jun 4, 2014 · 9 revisions

Gradle Setup

You do not need to install Gradle. Gradle Wrapper (present in the platform codebase under https://github.com/openMF/mifosx/tree/master/mifosng-provider) takes care of the same.

./gradlew or gradlew.bat

However, do ensure that you have the following environment variables setup

JAVA_HOME e.g. C:\dev\java\jdk7_u45

JAVA_OPTS e.g. -Xms512m -Xmx512m -XX:MaxPermSize=512m

Remote debugging and other default settings

Note: These variables are already configured in gradlew.bat (windows) and gradlew (*nix), no action is required unless you wish to change the defaults

Remote debugging is enabled on port 8005 as follows: DEFAULT_JVM_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n"

Java Opts are set as follows JAVA_OPTS="-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m"

Note: This is better than putting remote debugging JVM parameters into JAVA_OPTS.

Avoiding download of Gradle / 3rd Party Jars from Internet

If you do not want gradle to download the jars from the net, then you can copy the gradle jars from another machine which has MifosX setup. Usually it is in User's Home directory (.gradle folder). You can copy it into your home directory's .gradle folder, or put it in any folder, and set environment variable GRADLE_USER_HOME to point to that folder, and from then on gradle will refer to that folder to see if a jar is downloaded already or not.