diff --git a/src/main/scala/sbtunidoc/JavaUnidocPlugin.scala b/src/main/scala/sbtunidoc/JavaUnidocPlugin.scala index 1fa74f8..ff84b03 100644 --- a/src/main/scala/sbtunidoc/JavaUnidocPlugin.scala +++ b/src/main/scala/sbtunidoc/JavaUnidocPlugin.scala @@ -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 } diff --git a/src/main/scala/sbtunidoc/PublishJavadocPlugin.scala b/src/main/scala/sbtunidoc/PublishJavadocPlugin.scala index d192b50..4aca278 100644 --- a/src/main/scala/sbtunidoc/PublishJavadocPlugin.scala +++ b/src/main/scala/sbtunidoc/PublishJavadocPlugin.scala @@ -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 )