Update Build#1
Conversation
isomarcte
commented
Jan 22, 2022
- Update various versions
- Add Scala3
- Add Scalafix/Scalafmt
- Also add liancheng's ogranize imports scalafix tool
- Remove Main/MainSpec
- Switch to sbt-typelevel plugin
* Update various versions
* Add Scala3
* Add Scalafix/Scalafmt
* Also add liancheng's ogranize imports scalafix tool
* Remove Main/MainSpec
* Switch to sbt-typelevel plugin
| @@ -1,23 +1,16 @@ | |||
| import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType} | |||
There was a problem hiding this comment.
| import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType} |
Auto-imports are, auto-imported :)
| @@ -0,0 +1 @@ | |||
| ThisBuild / version := "0.0.1-SNAPSHOT" | |||
There was a problem hiding this comment.
sbt-typelevel has a git-based versioning scheme. You should add ThisBuild / tlBaseVersion := "0.0" to the primary build.
| ThisBuild / version := "0.0.1-SNAPSHOT" |
| addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.28") | ||
| addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "0.2.16") | ||
| addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3") | ||
| addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") |
There was a problem hiding this comment.
sbt-typelevel gets you the latest.
| addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") |
| lazy val `cats-uri` = project | ||
| .in(file(".")) | ||
| .disablePlugins(MimaPlugin) | ||
| .enablePlugins(NoPublishPlugin) | ||
| .aggregate(core.jvm, core.js) |
There was a problem hiding this comment.
| lazy val `cats-uri` = project | |
| .in(file(".")) | |
| .disablePlugins(MimaPlugin) | |
| .enablePlugins(NoPublishPlugin) | |
| .aggregate(core.jvm, core.js) | |
| lazy val root = tlCrossRootProject.aggregate(core) |
| micrositeDescription := "A URI with Cats instances", | ||
| ) | ||
| } | ||
| lazy val site = project.in(file("site")).disablePlugins(MimaPlugin).dependsOn(core.jvm) |
There was a problem hiding this comment.
| lazy val site = project.in(file("site")).disablePlugins(MimaPlugin).dependsOn(core.jvm) | |
| lazy val site = project.in(file("site")).enablePlugins(TypelevelSitePlugin).dependsOn(core.jvm) |
You'll also need to add a dependency to sbt-typelevel-site.
rossabaker
left a comment
There was a problem hiding this comment.
I didn't even remember there was a skeleton here. You're in good hands with Arman. I'll create a project team for it.
|
@armanbilge Are you hanging around to help with the project, or just here for the build? 😄 |
|
Oops. I did not look carefully at the build status before merging. |