From 158f54274933ea2852cd382b1d34af5bb6094326 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sat, 19 Oct 2024 22:20:10 +0900 Subject: [PATCH] add parentheses PathFinder.get (#222) --- plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala | 2 +- .../main/scala/com/github/sbt/jni/plugins/JniPackage.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala b/plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala index b8690f8..bf61347 100644 --- a/plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala +++ b/plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala @@ -42,7 +42,7 @@ class Cargo(protected val configuration: Seq[String]) extends BuildTool { val subdir = if (release) "release" else "debug" val products: List[File] = - (targetDirectory / subdir * ("*.so" | "*.dylib")).get.filter(_.isFile).toList + (targetDirectory / subdir * ("*.so" | "*.dylib")).get().filter(_.isFile).toList validate(products, multipleOutputs, logger) } diff --git a/plugin/src/main/scala/com/github/sbt/jni/plugins/JniPackage.scala b/plugin/src/main/scala/com/github/sbt/jni/plugins/JniPackage.scala index 2f208dc..d10c702 100644 --- a/plugin/src/main/scala/com/github/sbt/jni/plugins/JniPackage.scala +++ b/plugin/src/main/scala/com/github/sbt/jni/plugins/JniPackage.scala @@ -61,11 +61,11 @@ object JniPackage extends AutoPlugin { unmanagedPlatformDependentNativeDirectories := Seq(nativePlatform.value -> baseDirectory.value / "lib_native"), unmanagedNativeLibraries := { val mappings: Seq[(File, String)] = unmanagedNativeDirectories.value.flatMap { dir => - val files: Seq[File] = (dir ** "*").get.filter(_.isFile) + val files: Seq[File] = (dir ** "*").get().filter(_.isFile) files.pair(rebase(dir, "/native")) } val mappingsPlatform: Seq[(File, String)] = unmanagedPlatformDependentNativeDirectories.value.flatMap { case (platform, dir) => - val files: Seq[File] = (dir ** "*").get.filter(_.isFile) + val files: Seq[File] = (dir ** "*").get().filter(_.isFile) files.pair(rebase(dir, s"/native/$platform")) } mappings ++ mappingsPlatform