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