To build the JNI extension you need to install:
To build the library with the native library bundled in run:
This will create the TileDB JNI library
build/tiledb_jni/libtiledbjni.dylib. This will also download and build the TileDB core library if it is not found installed in a global system path, and place it in
If you wish to build with a custom version of the TileDB core library, you can define the environment variable
env TILEDB_HOME=/path/to/TileDB/dist ./gradlew assemble Note that if you build with a custom native TileDB library, it will only be bundled into the jar if the native static library was produced.
If TileDB is not globally installed in the system where the JNI library is being compiled, the TileDB core Library will be compiled. There are multiple properties which can be configured, including S3 and HDFS support.
See gradle.properties for all properties which can be set for building.
The properties can be set via the
-P option to
./gradlew -P TILEDB_S3=ON -P TILEDB_VERBOSE=ON assemble
To run the tests use: