Skip to content

Commit

Permalink
Compiled docs in frees-rpc repo (#104)
Browse files Browse the repository at this point in the history
* Compiled docs in frees-rpc repo
* Adds some additional tweaks
* Releases frees-rpc 0.6.0
  • Loading branch information
juanpedromoreno authored Dec 21, 2017
1 parent 694a518 commit 5ac4757
Show file tree
Hide file tree
Showing 3 changed files with 662 additions and 6 deletions.
33 changes: 28 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import sbtorgpolicies.templates.badges._
import sbtorgpolicies.runnable.syntax._

lazy val V = new {
val frees: String = "0.5.0"
val grpc: String = "1.7.1"
}

pgpPassphrase := Some(getEnvVar("PGP_PASSPHRASE").getOrElse("").toCharArray)
pgpPublicRing := file(s"$gpgFolder/pubring.gpg")
pgpSecretRing := file(s"$gpgFolder/secring.gpg")

orgAfterCISuccessTaskListSetting := List(
depUpdateDependencyIssues.asRunnableItem,
orgPublishReleaseTask.asRunnableItem(allModules = true, aggregated = false, crossScalaVersions = true),
orgUpdateDocFiles.asRunnableItem
)

lazy val root = project
.in(file("."))
.settings(name := "freestyle-rpc")
Expand All @@ -20,19 +32,30 @@ lazy val root = project
GitHubIssuesBadge.apply
)
)
.dependsOn(common, rpc, docs)
.aggregate(common, rpc, docs)

lazy val docs = project
.in(file("docs"))
.dependsOn(common, rpc)
.aggregate(common, rpc)
.settings(name := "frees-rpc-docs")
.settings(noPublishSettings: _*)
.settings(
addCompilerPlugin(%%("scalameta-paradise") cross CrossVersion.full),
libraryDependencies += %%("scalameta", "1.8.0"),
scalacOptions += "-Xplugin-require:macroparadise",
scalacOptions in Tut ~= (_ filterNot Set("-Ywarn-unused-import", "-Xlint").contains),
// Pointing to https://github.com/frees-io/freestyle/tree/master/docs/src/main/tut/docs/rpc
tutTargetDirectory := baseDirectory.value.getParentFile.getParentFile / "docs" / "src" / "main" / "tut" / "docs" / "rpc"
)
.enablePlugins(TutPlugin)

lazy val common = project
.in(file("common"))
.settings(moduleName := "frees-rpc-common")
.settings(scalacOptions := Seq("-deprecation", "-encoding", "UTF-8", "-feature", "-unchecked"))

lazy val V = new {
val frees: String = "0.5.0"
val grpc: String = "1.7.1"
}

lazy val rpc = project
.in(file("rpc"))
.dependsOn(common)
Expand Down
Loading

0 comments on commit 5ac4757

Please sign in to comment.