Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to sbt 1.0.2 #77

Merged
merged 2 commits into from
Oct 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
* limitations under the License.
*/

import de.heikoseeberger.sbtheader.license.Apache2_0

import scala.sys.process._
import scala.xml.Elem
import scala.xml.transform.{RewriteRule, RuleTransformer}

organization in ThisBuild := "org.typelevel"
organizationName in ThisBuild := "Typelevel"
startYear in ThisBuild := Some(2017)

val CompileTime = config("CompileTime").hide

val CatsVersion = "1.0.0-MF"
val SimulacrumVersion = "0.10.0"
Expand Down Expand Up @@ -58,15 +61,11 @@ val commonSettings = Seq(
},

// credit: https://github.com/typelevel/cats/pull/1638
ivyConfigurations += config("compile-time").hide,
unmanagedClasspath in Compile ++= update.value.select(configurationFilter("compile-time")),
ivyConfigurations += CompileTime,
unmanagedClasspath in Compile ++= update.value.select(configurationFilter("CompileTime")),

logBuffered in Test := false,

headers := Map(
"scala" -> Apache2_0("2017", "Typelevel"),
"java" -> Apache2_0("2017", "Typelevel")),

isSnapshot := version.value endsWith "SNAPSHOT", // so… sonatype doesn't like git hash snapshots

publishMavenStyle := true,
Expand Down Expand Up @@ -140,8 +139,8 @@ lazy val root = project.in(file("."))
.aggregate(coreJVM, coreJS, lawsJVM, lawsJS)
.configure(profile)
.settings(
publish := (),
publishLocal := (),
publish := (()),
publishLocal := (()),
publishArtifact := false)

lazy val core = crossProject.in(file("core"))
Expand All @@ -151,7 +150,7 @@ lazy val core = crossProject.in(file("core"))

libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % CatsVersion,
"com.github.mpilquist" %%% "simulacrum" % SimulacrumVersion % "compile-time",
"com.github.mpilquist" %%% "simulacrum" % SimulacrumVersion % CompileTime,

"org.typelevel" %%% "cats-laws" % CatsVersion % "test",
"org.scalatest" %%% "scalatest" % ScalaTestVersion % "test",
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=0.13.13
sbt.version=1.0.2
18 changes: 9 additions & 9 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC7")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.8.0")
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.2")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.14")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.18")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.19")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.20")