Scalismo is a library for statistical shape modeling and model-based image analysis in Scala.
The scalismo-native project provides a build framework for packaging the native libraries needed by Scalismo into a single Java jar that can be used on Linux, Windows and MacOS platforms.
Note that as a regular Scalismo user, you do not need to build this project and can simply use the already published artifacts as indicated in this tutorial.
ATTENTION: This project will probably only build (or rather: publish) properly on a Linux system!
These native libraries used and their corresponding licenses are:
-
JHDF5 v1.8.10, a Java interface to HDF5 objects, licensed under the following custom license
-
JOGL v2.2.4, Java Binding for the OpenGL API, licensed under the New BSD 2-Clause License
-
GlueGen v2.2.4, JNI binding code generator, licensed under the New BSD 2-Clause License
-
niftijio v1.1, A Java library for reading and writing NIfTI volumes, licensed under the MIT license
-
The Visualization Toolkit (VTK) v6.1.0, licensed under the BSD license
All code is available to you under the Apache license, version 2, available at http://www.apache.org/licenses/LICENSE-2.0.
Copyright, University of Basel, 2016.
Unfortunately, we cannot directly publish to sonatype using sbt. Instead, we need to do a publish, and then upload the files manually. To add insult to insjury, we currently also need to sign the files manually. Do the following:
- sbt publish
- navigate to the tmp directly, and there in the subfolder where the files were published
- sign all the files using: for f in *.jar *.pom; do gpg2 -ab $f ; done
- directly from this directory, create a zip file
- upload them manually to https://oss.sonatype.org/#stagingRepositories