Skip to content

Commit 158f542

Browse files
authored
add parentheses PathFinder.get (#222)
1 parent 9d7f624 commit 158f542

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugin/src/main/scala/com/github/sbt/jni/build/Cargo.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Cargo(protected val configuration: Seq[String]) extends BuildTool {
4242

4343
val subdir = if (release) "release" else "debug"
4444
val products: List[File] =
45-
(targetDirectory / subdir * ("*.so" | "*.dylib")).get.filter(_.isFile).toList
45+
(targetDirectory / subdir * ("*.so" | "*.dylib")).get().filter(_.isFile).toList
4646

4747
validate(products, multipleOutputs, logger)
4848
}

plugin/src/main/scala/com/github/sbt/jni/plugins/JniPackage.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ object JniPackage extends AutoPlugin {
6161
unmanagedPlatformDependentNativeDirectories := Seq(nativePlatform.value -> baseDirectory.value / "lib_native"),
6262
unmanagedNativeLibraries := {
6363
val mappings: Seq[(File, String)] = unmanagedNativeDirectories.value.flatMap { dir =>
64-
val files: Seq[File] = (dir ** "*").get.filter(_.isFile)
64+
val files: Seq[File] = (dir ** "*").get().filter(_.isFile)
6565
files.pair(rebase(dir, "/native"))
6666
}
6767
val mappingsPlatform: Seq[(File, String)] = unmanagedPlatformDependentNativeDirectories.value.flatMap { case (platform, dir) =>
68-
val files: Seq[File] = (dir ** "*").get.filter(_.isFile)
68+
val files: Seq[File] = (dir ** "*").get().filter(_.isFile)
6969
files.pair(rebase(dir, s"/native/$platform"))
7070
}
7171
mappings ++ mappingsPlatform

0 commit comments

Comments
 (0)