Skip to content

Commit 682f93b

Browse files
committed
community build: Add cats-mtl
This is a transitive dependency of cats-effect-3
1 parent b4d992d commit 682f93b

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,6 @@
135135
[submodule "community-build/community-projects/cats"]
136136
path = community-build/community-projects/cats
137137
url = https://github.com/typelevel/cats.git
138+
[submodule "community-build/community-projects/cats-mtl"]
139+
path = community-build/community-projects/cats-mtl
140+
url = https://github.com/typelevel/cats-mtl.git
Submodule cats-mtl added at 5b5dd28

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3535
*/
3636
object Versions:
3737
val cats = "2.3.1-SNAPSHOT"
38+
val catsMtl = "1.1+DOTTY-SNAPSHOT"
3839
val discipline = "1.1.3-SNAPSHOT"
3940
val disciplineMunit = "1.0.3+DOTTY-SNAPSHOT"
4041
val disciplineSpecs2 = "1.1.3-SNAPSHOT"
@@ -139,6 +140,10 @@ final case class SbtCommunityProject(
139140
s""""org.typelevel" %% "cats-laws_sjs1" % "${Versions.cats}"""",
140141
s""""org.typelevel" %% "cats-testkit" % "${Versions.cats}"""",
141142
s""""org.typelevel" %% "cats-testkit_sjs1" % "${Versions.cats}"""",
143+
s""""org.typelevel" %% "cats-mtl" % "${Versions.catsMtl}"""",
144+
s""""org.typelevel" %% "cats-mtl_sjs1" % "${Versions.catsMtl}"""",
145+
s""""org.typelevel" %% "cats-mtl-laws" % "${Versions.catsMtl}"""",
146+
s""""org.typelevel" %% "cats-mtl-laws_sjs1" % "${Versions.catsMtl}"""",
142147
)
143148

144149
private val baseCommand =
@@ -514,6 +519,13 @@ object projects:
514519
dependencies = List(discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations)
515520
)
516521

522+
lazy val catsMtl = SbtCommunityProject(
523+
project = "cats-mtl",
524+
sbtTestCommand = "testsJVM/test;testsJS/test",
525+
sbtPublishCommand = s"""set every version := "${Versions.catsMtl}";coreJVM/publishLocal;coreJS/publishLocal;lawsJVM/publishLocal;lawsJS/publishLocal""",
526+
dependencies = List(cats, disciplineMunit)
527+
)
528+
517529
end projects
518530

519531
def allProjects = projects.fields.of[CommunityProject].sortBy(_.project)

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
106106
//@Test def catsEffect2 = projects.catsEffect2.run()
107107
//@Test def catsEffect3 = projects.catsEffect3.run()
108108
@Test def cats = projects.cats.run()
109+
@Test def catsMtl = projects.catsMtl.run()
109110
@Test def discipline = projects.discipline.run()
110111
@Test def disciplineMunit = projects.disciplineMunit.run()
111112
@Test def disciplineSpecs2 = projects.disciplineSpecs2.run()

0 commit comments

Comments
 (0)