Skip to content

Update Build#1

Merged
rossabaker merged 2 commits into
typelevel:mainfrom
isomarcte:update-build
Jan 23, 2022
Merged

Update Build#1
rossabaker merged 2 commits into
typelevel:mainfrom
isomarcte:update-build

Conversation

@isomarcte

Copy link
Copy Markdown
Member
  • 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
@isomarcte

Copy link
Copy Markdown
Member Author

@rossabaker

Comment thread build.sbt Outdated
@@ -1,23 +1,16 @@
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}

@armanbilge armanbilge Jan 22, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}

Auto-imports are, auto-imported :)

Comment thread version.sbt Outdated
@@ -0,0 +1 @@
ThisBuild / version := "0.0.1-SNAPSHOT"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sbt-typelevel has a git-based versioning scheme. You should add ThisBuild / tlBaseVersion := "0.0" to the primary build.

Suggested change
ThisBuild / version := "0.0.1-SNAPSHOT"

Comment thread project/plugins.sbt Outdated
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")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sbt-typelevel gets you the latest.

Suggested change
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")

Comment thread build.sbt Outdated
Comment on lines 12 to 16
lazy val `cats-uri` = project
.in(file("."))
.disablePlugins(MimaPlugin)
.enablePlugins(NoPublishPlugin)
.aggregate(core.jvm, core.js)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lazy val `cats-uri` = project
.in(file("."))
.disablePlugins(MimaPlugin)
.enablePlugins(NoPublishPlugin)
.aggregate(core.jvm, core.js)
lazy val root = tlCrossRootProject.aggregate(core)

Comment thread build.sbt Outdated
micrositeDescription := "A URI with Cats instances",
)
}
lazy val site = project.in(file("site")).disablePlugins(MimaPlugin).dependsOn(core.jvm)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 rossabaker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@isomarcte
isomarcte requested a review from rossabaker January 22, 2022 21:34
@rossabaker

Copy link
Copy Markdown
Member

@armanbilge Are you hanging around to help with the project, or just here for the build? 😄

@rossabaker
rossabaker merged commit c4b06a3 into typelevel:main Jan 23, 2022
@rossabaker

Copy link
Copy Markdown
Member

Oops. I did not look carefully at the build status before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants