Skip to content

Commit

Permalink
Add publishLocal hint to build.sbt, fix comment in .scala-steward.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKubuszok committed Mar 30, 2024
1 parent 3bb4126 commit a85aec3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# add try-chimney to defaults from https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
updates.fileExtensions = [".mill-version",".sbt",".sbt.shared",".sc",".scala",".scalafmt.conf",".yml","build.properties","mill-version","pom.xml","try-chimney.sh"]

updates.pin = [
# Use Scala 3 LTE
# Use Scala 3 LTS, ignore Scala 3 Next releases
{ groupId = "org.scala-lang", artifactId="scala3-library", version="3.3." }
]

# add try-chimney to defaults from https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
updates.fileExtensions = [".mill-version",".sbt",".sbt.shared",".sc",".scala",".scalafmt.conf",".yml","build.properties","mill-version","pom.xml","try-chimney.sh"]
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import com.jsuereth.sbtpgp.PgpKeys.publishSigned
import com.typesafe.tools.mima.core.{Problem, ProblemFilters}
import commandmatrix.extra.*

// Used to configure the build so that it would format on compile during development
// but not on CI.
lazy val isCI = sys.env.get("CI").contains("true")
ThisBuild / scalafmtOnCompile := !isCI

Expand Down Expand Up @@ -325,7 +327,14 @@ lazy val root = project
| - Scala 2.13 adds no suffix to a project name seen in build.sbt
| - Scala 3 adds the suffix "3" to a project name seen in build.sbt
|
|When working with IntelliJ or Scala Metals, edit "val ideScala = ..." and "val idePlatform = ..." within "val versions" in build.sbt to control which Scala version you're currently working with.""".stripMargin,
|When working with IntelliJ or Scala Metals, edit "val ideScala = ..." and "val idePlatform = ..." within "val versions" in build.sbt to control which Scala version you're currently working with.
|
|If you need to test library locally in a different project, restart sbt with "RELEASE=true sbt". Then publishLocal:
| - chimney-macro-commons (obligatory)
| - chimney
| - cats/java-collections/protobufs integration (optional)
|for the right Scala version and platform (see projects task).
|""".stripMargin,
usefulTasks := Seq(
sbtwelcome.UsefulTask("projects", "List all projects generated by the build matrix").noAlias,
sbtwelcome
Expand Down

0 comments on commit a85aec3

Please sign in to comment.