Skip to content

Commit

Permalink
Merge pull request scalamacros#82 from xeno-by/master
Browse files Browse the repository at this point in the history
simplify build header
  • Loading branch information
xeno-by authored Oct 14, 2016
2 parents 37c710b + 71e48f0 commit f62b1a9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import scala.util.Try

lazy val ScalaVersions = Seq("2.11.8")
lazy val MetaOrg = "org.scalameta"
lazy val MetaVersion = "1.2.0"
lazy val LibraryVersion = "3.0.0-SNAPSHOT"
lazy val isSnapshot = LibraryVersion.endsWith("SNAPSHOT")
Expand Down Expand Up @@ -40,7 +37,7 @@ lazy val usePluginSettings: Seq[Def.Setting[_]] = Seq(
)

lazy val testSettings: Seq[Def.Setting[_]] = Seq(
libraryDependencies += MetaOrg %% "scalameta" % MetaVersion,
libraryDependencies += "org.scalameta" %% "scalameta" % MetaVersion,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.0",
Expand Down Expand Up @@ -131,7 +128,7 @@ lazy val plugin = Project(id = "paradise", base = file("plugin"))
resourceDirectory in Compile <<=
baseDirectory(_ / "src" / "main" / "scala" / "org" / "scalameta" / "paradise" / "embedded"),
libraryDependencies ++= Seq(
MetaOrg %% "scalameta" % MetaVersion,
"org.scalameta" %% "scalameta" % MetaVersion,
"org.scala-lang" % "scala-library" % scalaVersion.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang" % "scala-compiler" % scalaVersion.value
Expand Down Expand Up @@ -245,7 +242,7 @@ def parsePullRequestFromCommitMessage: Option[String] = {
import sys.process._
val PullRequest = "\\s+Merge pull request #(\\d+).*".r
for {
commitMsg <- Try(Seq("git", "log", "-1").!!.trim).toOption
commitMsg <- scala.util.Try(Seq("git", "log", "-1").!!.trim).toOption
pr <- augmentString(commitMsg).lines.collectFirst {
case PullRequest(pr) => pr
}
Expand Down

0 comments on commit f62b1a9

Please sign in to comment.