Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI User committed Nov 9, 2019
2 parents 3ea0e3c + 08da1dc commit 95d639f
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ Add the following to your `project/plugins.sbt`:


```scala
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "1.0.0")
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "1.0.1")
```

Override the `sbt-mdoc` and `mdoc` dependency versions with the version of mdoc you wish to use:


```scala
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "1.0.0")
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "1.0.1")

val mdocVersion = "1.0.0"
val mdocVersion = "2.0.0"
addSbtPlugin("org.scalameta" % "sbt-mdoc" % mdocVersion)
libraryDependencies ++= Seq(
"org.scalameta" %% "mdoc" % mdocVersion
Expand Down
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ReleaseTransformations._
import com.github.daniel.shuy.sbt.release.mdoc.ReleaseMdocStateTransformations

val sbtReleaseVersion = "1.0.11"
val mdocVersion = "1.0.0"
val mdocVersion = "2.0.0"

ThisBuild / organization := "com.github.daniel-shuy"
ThisBuild / name := "sbt-release-mdoc"
Expand Down Expand Up @@ -76,7 +76,9 @@ lazy val sbtReleaseMdoc = project
.in(file("sbt-release-mdoc"))
.settings(
moduleName := (ThisBuild / name).value,
crossSbtVersions := Seq("1.2.8"),
crossSbtVersions := Seq(
"1.3.3",
),
// mdoc must be declared before sbt-mdoc due to package/class name conflict (mdoc.Main)
// The compiler looks up classes in the build classpath order
libraryDependencies ++= Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.3
2 changes: 1 addition & 1 deletion project/release.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "0.2.0")
addSbtPlugin("com.github.daniel-shuy" % "sbt-release-mdoc" % "1.0.0")

val mdocVersion = "2.0.0"
addSbtPlugin("org.scalameta" % "sbt-mdoc" % mdocVersion)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sys.props.get("plugin.version") match {
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}

useCoursier := false

addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % "1.1.1")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8"

Expand Down
4 changes: 3 additions & 1 deletion sbt-release-mdoc/src/sbt-test/sbt-1.0/mdoc/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import org.eclipse.jgit.api.{Git => JGit}
import org.scalatest.{BeforeAndAfterAll, WordSpec}
import sbtrelease.Git

import scala.util.Properties

lazy val testMdoc = (project in file("."))
.enablePlugins(MdocPlugin)
.settings(
Expand Down Expand Up @@ -44,7 +46,7 @@ lazy val testMdoc = (project in file("."))
Command.process(ReleaseKeys.releaseCommand.nameOption.get, sbtState)

assert(generatedMarkdownFile.exists(), s"$generatedMarkdownFile not found")
assert(generatedMarkdownFile.contentAsString == "KEY : VALUE\n")
assert(generatedMarkdownFile.contentAsString == s"KEY : VALUE${Properties.lineSeparator}")
}
}
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sys.props.get("plugin.version") match {
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}

useCoursier := false

addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % "1.1.1")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8"

Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.0.1-SNAPSHOT"
version in ThisBuild := "1.0.2-SNAPSHOT"

0 comments on commit 95d639f

Please sign in to comment.