From 222652f55fb377a005e096b39d8aeed97ba84383 Mon Sep 17 00:00:00 2001 From: "Ross A. Baker" Date: Thu, 30 Dec 2021 13:30:02 -0500 Subject: [PATCH] Try out sbt-typelevel --- build.sbt | 19 +++---------------- project/build.sbt | 1 + project/plugins.sbt | 3 ++- 3 files changed, 6 insertions(+), 17 deletions(-) create mode 100644 project/build.sbt diff --git a/build.sbt b/build.sbt index 03a08d2..ded7638 100644 --- a/build.sbt +++ b/build.sbt @@ -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 @@ -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) @@ -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")), diff --git a/project/build.sbt b/project/build.sbt new file mode 100644 index 0000000..c10d187 --- /dev/null +++ b/project/build.sbt @@ -0,0 +1 @@ +project/ diff --git a/project/plugins.sbt b/project/plugins.sbt index 8f2bc26..0ca5e2c 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -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")