Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.36 KB

BUILDING.md

File metadata and controls

55 lines (40 loc) · 1.36 KB

Building Tongsuo-Java-SDK

Before you begin, you'll first need to properly configure the Prerequisites as described below.

Then to build, run:

$ ./gradlew build -PtongsuoHome=/opt/tongsuo -PjdkHome=/path/to/jdk

To publish the artifacts to your Maven local repository for use in your own project, run:

$ ./gradlew publishToMavenLocal -PtongsuoHome=/opt/tongsuo -PjdkHome=/path/to/jdk

Prerequisites

Tongsuo-Java-SDK requires that you have Java, Tongsuo configured as described below.

Java

The build requires that you have the JAVA_HOME environment variable pointing to a valid JDK.

Tongsuo

Download Tongsuo and then build as follows:

wget https://github.com/Tongsuo-Project/Tongsuo/releases/download/8.3.2/BabaSSL-8.3.2.tar.gz
tar xzvf BabaSSL-8.3.2.tar.gz
cd Tongsuo-8.3.2
./config no-shared enable-ntls enable-weak-ssl-ciphers --release --prefix=/opt/tongsuo
make -j
make install

Running tests

./gradlew test -PtongsuoHome=/opt/tongsuo -PjdkHome=/path/to/jdk

Coverage

To see coverage numbers, run the tests and then execute the jacocoTestReport rule

./gradlew check jacocoTestReport -PtongsuoHome=/opt/tongsuo -PjdkHome=/path/to/jdk

The report will be placed in openjdk/build/reports/jacoco/test/html/index.html