Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.25 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.25 KB

cosim4j

CI Download

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.

Usage with maven

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"

Building from source

  1. Fetch and build native dependencies by running gradlew buildNative. This is only required if you have modified conanfile.txt or the JNI sources.
  2. Build and test cosim4j by running gradlew build