Skip to content

Building Rest.li from Source

Karan Parikh edited this page Feb 14, 2014 · 10 revisions

You can use the latest released version of Rest.li or build your own local version.

Using Rest.li jars

If you are not modifying the rest.li source code, you don’t need to build rest.li. You can simply depend on the artifacts in the maven central repository

For details on how to use rest.li via it’s maven central artifacts, see: Quickstart

Building Your Own Copy of Rest.li

You can also checkout, modify, or build your own copy of Rest.li.

Checking out Source

You can get your own copy of the Rest.li respository with:

git clone git@github.com:linkedin/rest.li.wiki

Or if you already have a copy of the repository, you can update with

git pull

Building Rest.li

To do a clean build type:

gradle clean build

To install the gradle jars in your own local repository, do:

gradle install

Out of memory while trying to build?

If the build fails with an error message saying that there isn’t enough memory, please increase the memory memory using the following command and try again:

export GRADLE_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=1024M"

Clone this wiki locally