-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from typesafehub/wip-genjavadoc
add genjavadoc and fix doc comments
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ scalaVersion := "2.10.3" | |
lazy val spi = project | ||
|
||
lazy val tck = project.dependsOn(spi) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import sbt._ | ||
import Keys._ | ||
|
||
object Common { | ||
lazy val JavaDoc = config("genjavadoc") extend Compile | ||
|
||
val javadocSettings = inConfig(JavaDoc)(Defaults.configSettings) ++ Seq( | ||
packageDoc in Compile <<= packageDoc in JavaDoc, | ||
sources in JavaDoc <<= (target, compile in Compile, sources in Compile) map ((t, c, s) => | ||
(t / "java" ** "*.java").get ++ s.filter(_.getName.endsWith(".java")) | ||
), | ||
javacOptions in JavaDoc := Seq(), | ||
artifactName in packageDoc in JavaDoc := ((sv, mod, art) => "" + mod.name + "_" + sv.binary + "-" + mod.revision + "-javadoc.jar"), | ||
libraryDependencies += compilerPlugin("com.typesafe.genjavadoc" %% "genjavadoc-plugin" % "0.5" cross CrossVersion.full), | ||
scalacOptions in Compile <+= target map (t => "-P:genjavadoc:out=" + (t / "java")) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
organization := "org.reactivestreams" | ||
|
||
name := "reactive-streams-spi" | ||
|
||
Common.javadocSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters