-
Notifications
You must be signed in to change notification settings - Fork 749
Gradle
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
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.
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.