Skip to content

Latest commit

 

History

History
90 lines (53 loc) · 1.82 KB

build.md

File metadata and controls

90 lines (53 loc) · 1.82 KB

Build from source

Contents:

Prerequisites

Install Java JDK

  • Linux (Debian, Ubuntu):
sudo apt-get install openjdk-8-jdk

Install LibSodium

  • Linux: follow this instructions (anglais).

    • After install, check that the file libsodium.so exists inside directory /usr/local/lib or /opt/local/lib.

    • If not exists, but at another location, please create a symbolic link under directory /usr/local/lib or /opt/local/lib.

  • Windows: Nothing to do (the lib sodium.dll is already include in the included library duniter4j);

Installer Apache Maven 3

Install Apache Maven 3:

  • Linux (Debian, Ubuntu):
    sudo apt-get install maven

Compilation

Get source and compile

  • Get the source code, then compile using Maven:
git clone [email protected]:duniter-gchange/gchange-pod.git
cd gchange-pod
git submodule init
git submodule sync
git submodule update

mvn install -DskipTests
  • Then, package all binaries:
mvn install -DskipTests -DperformRelease

Build a new release

Deploy binaries

You will need to have access to project site repository.

To deploy binaries:

mvn release:prepare
mvn release:perform

Deploy the web site

To deploy the web site:

mvn site-deploy -DperformRelease