tartrazine/java
Miguel Molina 9a36e8f398 enry-java: allow empty file contents
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
2017-09-22 19:00:19 +03:00
..
project java implementation of enry 2017-08-08 18:01:54 +02:00
src enry-java: allow empty file contents 2017-09-22 19:00:19 +03:00
.gitignore java implementation of enry 2017-08-08 18:01:54 +02:00
build.sbt enry-java: publish fat jar without any classifiers in assembly task 2017-09-04 11:49:14 +02:00
Makefile get jnaerator from a jitpack jar 2017-08-08 18:20:16 +02:00
README.md Add ability to publish final jar locally 2017-08-11 15:09:14 +02:00
sbt enry-java: publish fat jar without any classifiers in assembly task 2017-09-04 11:49:14 +02:00

enry-java

Requirements

  • sbt
  • Java (tested with Java 1.8)
  • wget
  • Go (only for building the shared objects for your operating system)

Generate jar with Java bindings and shared libraries

You need to do this before exporting the jar and/or testing.

make

This will download JNAerator jar to generate the code from the libenry.h header file, it will be placed under lib. The shared libraries for your operating system will be built if needed and copied inside the shared directory.

For IntelliJ and other IDEs remember to mark shared folder as sources and add lib/enry.jar as library. If you use sbt from the command line directly that's already taken care of.

Run tests

make test

Export jar

make package

Will build fatJar under ./target/enry-java-assembly-X.X.X.jar. One can use ./sbt publish-local to install enry-java dependency on local machine.