-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare repository for next
.github
release and SBT build improveme…
…nts (#501)
- Loading branch information
1 parent
fb47146
commit 1ff928e
Showing
36 changed files
with
50 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pre: | ||
docs: 'gem install jekyll -v 4' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,28 @@ | ||
addCommandAlias("ci-test", "+scalafmtCheckAll; +scalafmtSbtCheck; +docs/mdoc; +test") | ||
addCommandAlias("ci-docs", "project-docs/mdoc; docs/mdoc; headerCreateAll") | ||
addCommandAlias("ci-microsite", "docs/publishMicrosite") | ||
ThisBuild / organization := "com.47deg" | ||
ThisBuild / scalaVersion := "2.13.2" | ||
ThisBuild / crossScalaVersions := Seq("2.12.11", "2.13.2") | ||
|
||
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; mdoc; testCovered") | ||
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll; publishMicrosite") | ||
addCommandAlias("ci-publish", "github; ci-release") | ||
|
||
skip in publish := true | ||
|
||
lazy val github4s = project | ||
.enablePlugins(BuildInfoPlugin) | ||
.settings( | ||
buildInfoKeys := Seq[BuildInfoKey]( | ||
name, | ||
version, | ||
"token" -> sys.env.getOrElse("GITHUB_TOKEN", "") | ||
), | ||
buildInfoPackage := "github4s" | ||
) | ||
.settings(coreDeps: _*) | ||
lazy val github4s = project.settings(coreDeps: _*) | ||
|
||
////////// | ||
// DOCS // | ||
////////// | ||
|
||
lazy val docs: Project = project | ||
.aggregate(github4s) | ||
lazy val microsite: Project = project | ||
.dependsOn(github4s) | ||
.settings(micrositeSettings: _*) | ||
.settings(skip in publish := true) | ||
.enablePlugins(MicrositesPlugin) | ||
.enablePlugins(ScalaUnidocPlugin) | ||
.settings( | ||
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(github4s, docs) | ||
) | ||
.settings(micrositeSettings: _*) | ||
.settings(skip in publish := true) | ||
.settings(unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(github4s, microsite)) | ||
|
||
lazy val `project-docs` = (project in file(".docs")) | ||
.aggregate(github4s) | ||
.dependsOn(github4s) | ||
.settings(moduleName := "github4s-project-docs") | ||
.settings(mdocIn := file(".docs")) | ||
lazy val documentation = project | ||
.enablePlugins(MdocPlugin) | ||
.settings(mdocOut := file(".")) | ||
.settings(skip in publish := true) | ||
.enablePlugins(MdocPlugin) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") | ||
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.2.0") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.3") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.0") | ||
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.4.0") | ||
addSbtPlugin("com.alejandrohdezma" %% "sbt-github" % "0.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % "0.2") | ||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.11") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") | ||
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.2.1") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.0") | ||
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-codecov" % "0.2.0") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github" % "0.8.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.8.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.8.2") | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-remove-test-from-pom" % "0.1.0") | ||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.11") |