plugins { id 'java-library' } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1' } repositories { mavenCentral() } task cargoBuild(type: Exec) { workingDir '.' commandLine 'cargo', 'build', '-p', 'jni-toolbox-test' } test { dependsOn cargoBuild outputs.upToDateWhen { false } useJUnitPlatform() systemProperty 'java.library.path','target/debug' }