jni-toolbox/build.gradle

25 lines
451 B
Groovy
Raw Normal View History

2024-09-24 01:58:10 +02:00
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'
}
2024-09-24 01:58:10 +02:00
test {
dependsOn cargoBuild
outputs.upToDateWhen { false }
2024-09-24 01:58:10 +02:00
useJUnitPlatform()
systemProperty 'java.library.path','target/debug'
}