Skip to content

Commit

Permalink
add parentheses PathFinder.get
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 22, 2024
1 parent 11040cc commit dd3c2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/sbtunidoc/JavaUnidocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object JavaUnidocPlugin extends AutoPlugin {
lazy val javaSources: sbt.Def.Initialize[Task[Seq[File]]] = Def.task {
val compiled = compile.value
val sourceJavaFiles = sources.value filter {_.getName endsWith ".java"}
val targetJavaFiles: Seq[File] = (target.value / "java" ** "*.java").get.sorted
val targetJavaFiles: Seq[File] = (target.value / "java" ** "*.java").get().sorted
sourceJavaFiles ++ targetJavaFiles
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/sbtunidoc/PublishJavadocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object PublishJavadocPlugin extends AutoPlugin {
packageDoc / artifactName := { (sv, mod, art) => "" + mod.name + "_" + sv.binary + "-" + mod.revision + "-javadoc.jar" },
sources := {
(sc / compile).value
(target.value / "java" ** "*.java").get ++ (sc / sources).value.filter(_.getName.endsWith(".java"))
(target.value / "java" ** "*.java").get() ++ (sc / sources).value.filter(_.getName.endsWith(".java"))
},
doc / javacOptions := (sc / doc / javacOptions).value
)
Expand Down

0 comments on commit dd3c2f1

Please sign in to comment.