Skip to content

Commit

Permalink
Try out sbt-typelevel
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Dec 30, 2021
1 parent b9c0d53 commit 222652f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
19 changes: 3 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ val catsV = "2.7.0"
val scalacheckV = "1.15.4"
val disciplineMunitV = "1.0.9"

enablePlugins(SonatypeCiReleasePlugin)
enablePlugins(TypelevelCiReleasePlugin)

// Projects
lazy val `case-insensitive` = project
Expand All @@ -22,13 +22,7 @@ lazy val core = crossProject(JSPlatform, JVMPlatform)
name := "case-insensitive",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV
),
Compile / unmanagedSourceDirectories ++= {
val major = if (isDotty.value) "-3" else "-2"
List(CrossType.Pure, CrossType.Full).flatMap(
_.sharedSrcDir(baseDirectory.value, "main").toList.map(f => file(f.getPath + major))
)
}
)
)

lazy val testing = crossProject(JSPlatform, JVMPlatform)
Expand Down Expand Up @@ -142,16 +136,9 @@ inThisBuild(
List(
organization := "org.typelevel",
organizationName := "Typelevel",
publishGithubUser := "rossabaker",
publishFullName := "Ross A. Baker",
baseVersion := "1.1",
tlBaseVersion := "1.2",
crossScalaVersions := Seq("2.12.15", Scala213, "3.0.2"),
scalaVersion := crossScalaVersions.value.filter(_.startsWith("2.")).last,
versionIntroduced := Map(
"3.0.0-RC1" -> "1.0.0",
"3.0.0-RC2" -> "1.0.1",
"3.0.0-RC3" -> "1.1.3"
),
homepage := Some(url("https://github.com/typelevel/case-insensitive")),
startYear := Some(2020),
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")),
Expand Down
1 change: 1 addition & 0 deletions project/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project/
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.4")
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.22.1")
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4-60549ca-SNAPSHOT")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
Expand Down

0 comments on commit 222652f

Please sign in to comment.