This documents how to build Groovy from source.
Java Developer Kit (JDK)
You will need a JDK 1.4.2+ (J2SE 1.4.2+) or compatible JDK to build Groovy.
To execute the build process you need to have Apache Ant version
1.7.0 (or newer) installed.
To fetch the source code for the server, you will need to have a Subversion client version 1.2 (or newer, 1.4 is recommended) installed.
Fetch the Groovy Source Code
There are many different protocols available to access the Groovy source code. For the complete list see the source repository details for the project.
From a Source Archive
Select one of the
*-src.* archives from the distribution site site and unzip it.
For example, to use the source from the Groovy
Preparing to Build for the First Time
If you are behind a proxy firewall, you may need to set up proxy information in a
If you will need to publish artifacts then you will need to have appropriate permissions with codehaus and ensure that you have stored your credentials in a
~/.m2/settings.xml file of the form:
To build everything, run tests and create a complete installation in
After this finished successfully, then you can try out the distribution that was just built. For example to play with
groovysh you can run:
Sometimes its desirable to skip the test execution for faster turn around. To turn off tests set the
skipTests property, as in:
To publish artifacts to the Maven 2 repository, run:
If deploy is failing, then check Installing the UserTrust CA into the Java JDK.