From 7e2b84a607b931e54e75860f4f366a6ef228adc6 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sun, 3 Nov 2024 14:32:28 +0900 Subject: [PATCH] add parentheses `PathFinder.get` --- plugin/src/main/scala/Giter8Plugin.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/scala/Giter8Plugin.scala b/plugin/src/main/scala/Giter8Plugin.scala index 8efddb31..3eb6779d 100644 --- a/plugin/src/main/scala/Giter8Plugin.scala +++ b/plugin/src/main/scala/Giter8Plugin.scala @@ -71,7 +71,7 @@ object Giter8Plugin extends sbt.AutoPlugin { }, g8 / aggregate := false, g8 / unmanagedSourceDirectories := { - val dir1 = (sourceDirectory.value / "g8").get + val dir1 = (sourceDirectory.value / "g8").get() if (dir1.nonEmpty) dir1 else List(baseDirectory.value) }, @@ -82,7 +82,7 @@ object Giter8Plugin extends sbt.AutoPlugin { }, g8 / target := { target.value / "g8" }, g8 / g8PropertiesFile := { - val propertiesLoc0 = ((g8 / unmanagedSourceDirectories).value / "default.properties").get.headOption + val propertiesLoc0 = ((g8 / unmanagedSourceDirectories).value / "default.properties").get().headOption val propertiesLoc1: Option[File] = Some((LocalRootProject / baseDirectory).value / "project" / "default.properties") (propertiesLoc0 orElse propertiesLoc1).get