Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Gurpreet edited this page Nov 12, 2013 · 9 revisions

Gradle Setup

You do not need to install Gradle. Gradle Wrapper takes care of that.

./gradlew or gradlew.bat

This will take care of the gradle version required for the build, and it will download the needed gradle libraries from the internet.

Important environment variables of interest:

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

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

Configure remote debugging

Add this in your gradle.properties

org.gradle.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n

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

How to 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.

Clone this wiki locally