High-level, easy to use JVM bindings for libcosim, written in Kotlin.
The JNI code is written by hand in clean, easy to maintain C++, no magic involved.
Add the open-simulation-platform bintray repository:
repositories {
maven { url "https://dl.bintray.com/open-simulation-platform/maven" }
}
Add the dependencies
def cosim4j_version = "..."
implementation "com.opensimulationplatform.cosim4j:core:$cosim4j_version"
// one of
runtimeOnly "com.opensimulationplatform.cosim4j:natives-win:$cosim4j_version"
runtimeOnly "com.opensimulationplatform.cosim4j:natives-linux:$cosim4j_version"
- Fetch and build native dependencies by running
gradlew buildNative
. This is only required if you have modifiedconanfile.txt
or the JNI sources. - Build and test cosim4j by running
gradlew build