Skip to content

Building Open Liberty

Tom Evans edited this page Jan 29, 2018 · 14 revisions

DRAFT! NOT READY


Building Open Liberty

This assumes that you have already cloned an Open Liberty repository. If you wish to build Open Liberty in Eclipse then follow these instructions first: Building Open Liberty in Eclipse


  1. Clone the repository to your system.

    git clone git@github.com:OpenLiberty/open-liberty.git

  2. Run a gradle build.

    cd open-liberty/dev

    ./gradlew cnf:initialize You should only have to run this command on the initial setup of the repo

    ./gradlew assemble

  3. Run the unit or FAT tests.

    ./gradlew test for unit tests

    ./gradlew build.example_fat:buildandrun to run a FAT project

    NOTE: ./gradlew build runs assemble and test targets

  4. Perform a local release

    ./gradlew releaseNeeded

    NOTE: This task releases all projects to the local releaseRepo. The final openliberty zip can be found in

    open-liberty\dev\cnf\release\dev\openliberty\<version>\openliberty-xxx.zip