From 7f203db06122baf2b67b3eeeb2cdcdfbd8baf71a Mon Sep 17 00:00:00 2001 From: garyschulte Date: Wed, 21 Aug 2024 17:15:52 -0700 Subject: [PATCH] minimize the explicit jna path hack Signed-off-by: garyschulte --- constantine/build.gradle | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/constantine/build.gradle b/constantine/build.gradle index c015b501..7b1bb5cc 100644 --- a/constantine/build.gradle +++ b/constantine/build.gradle @@ -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 {