Skip to content

Commit

Permalink
minimize the explicit jna path hack
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <garyschulte@gmail.com>
  • Loading branch information
garyschulte committed Aug 22, 2024
1 parent 5fec469 commit 15207d3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions constantine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@ task linuxArm64LibCopy(type: Copy) {

processResources.dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy

tasks.named('test', Test) {
description = 'Runs the Java tests'
useJUnit {
include '**/*Test.class'
}
environment 'LD_LIBRARY_PATH', "${System.env.LD_LIBRARY_PATH}:build/resources/main/linux-gnu-x86_64"

dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy
test {
//TODO: why is this necessary on x86_64?
systemProperty 'jna.library.path', file('build/resources/main/linux-gnu-x86_64').absolutePath
}

jar {
Expand Down

0 comments on commit 15207d3

Please sign in to comment.