From 3e2a27f65cb4b682b5f59ab84e6f532e27cd426f Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Wed, 11 Dec 2024 14:25:39 +0900 Subject: [PATCH] add parentheses `PathFinder.get` --- src/main/scala/sbtprotoc/ProtocPlugin.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/scala/sbtprotoc/ProtocPlugin.scala b/src/main/scala/sbtprotoc/ProtocPlugin.scala index 8ae10cf3..d196e3a9 100644 --- a/src/main/scala/sbtprotoc/ProtocPlugin.scala +++ b/src/main/scala/sbtprotoc/ProtocPlugin.scala @@ -465,7 +465,7 @@ object ProtocPlugin extends AutoPlugin { targets.flatMap { case Target(DescriptorSetGenerator(), outputFile, _) => Seq(outputFile) - case Target(_, outputDirectory, _) => outputDirectory.allPaths.get + case Target(_, outputDirectory, _) => outputDirectory.allPaths.get() }.toSet } else if (schemas.nonEmpty && targets.isEmpty) { log.info("Protobufs files found, but PB.targets is empty.") @@ -552,7 +552,8 @@ object ProtocPlugin extends AutoPlugin { sources .toSet[File] .flatMap(srcDir => - (srcDir ** (toInclude -- toExclude)).get + (srcDir ** (toInclude -- toExclude)) + .get() .map(_.getAbsoluteFile) ) match { case protos if protos.nonEmpty => @@ -622,7 +623,7 @@ object ProtocPlugin extends AutoPlugin { { (_, prevValue) => def stampClasspath(files: Seq[File]) = // artifact paths can be JARs or directories, so a recursive stamp is needed - FileInfo.lastModified(files.toSet[File].allPaths.get.toSet) + FileInfo.lastModified(files.toSet[File].allPaths.get().toSet) if (prevValue == null) { // first time this classpath is requested since the start of sbt @@ -711,7 +712,7 @@ object ProtocPlugin extends AutoPlugin { val sandboxedArtifactsStamps = stampedClassLoadersByArtifact.values.map(_._1).toSeq val inputStamp = - FileInfo.lastModified(schemas ++ arguments.includePaths.allPaths.get) + FileInfo.lastModified(schemas ++ arguments.includePaths.allPaths.get()) cachedCompile((arguments, sandboxedArtifactsStamps :+ inputStamp)).toSeq } }