Skip to content

Commit 6195e2a

Browse files
committed
community build: Add coop
This is a dependency of cats-effect-3
1 parent 4c9b8e4 commit 6195e2a

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@
138138
[submodule "community-build/community-projects/cats-mtl"]
139139
path = community-build/community-projects/cats-mtl
140140
url = https://github.com/dotty-staging/cats-mtl.git
141+
[submodule "community-build/community-projects/coop"]
142+
path = community-build/community-projects/coop
143+
url = https://github.com/dotty-staging/coop.git
Submodule coop added at d3bcd36

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3636
object Versions:
3737
val cats = "2.3.1-SNAPSHOT"
3838
val catsMtl = "1.1+DOTTY-SNAPSHOT"
39+
val coop = "1.0+DOTTY-SNAPSHOT"
3940
val discipline = "1.1.3-SNAPSHOT"
4041
val disciplineMunit = "1.0.3+DOTTY-SNAPSHOT"
4142
val disciplineSpecs2 = "1.1.3-SNAPSHOT"
@@ -144,6 +145,8 @@ final case class SbtCommunityProject(
144145
s""""org.typelevel" %% "cats-mtl_sjs1" % "${Versions.catsMtl}"""",
145146
s""""org.typelevel" %% "cats-mtl-laws" % "${Versions.catsMtl}"""",
146147
s""""org.typelevel" %% "cats-mtl-laws_sjs1" % "${Versions.catsMtl}"""",
148+
s""""org.typelevel" %% "coop" % "${Versions.coop}"""",
149+
s""""org.typelevel" %% "coop_sjs1" % "${Versions.coop}"""",
147150
)
148151

149152
private val baseCommand =
@@ -526,6 +529,13 @@ object projects:
526529
dependencies = List(cats, disciplineMunit)
527530
)
528531

532+
lazy val coop = SbtCommunityProject(
533+
project = "coop",
534+
sbtTestCommand = "test",
535+
sbtPublishCommand = s"""set every version := "${Versions.coop}";coreJVM/publishLocal;coreJS/publishLocal""",
536+
dependencies = List(cats, catsMtl)
537+
)
538+
529539
end projects
530540

531541
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
@@ -107,6 +107,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
107107
//@Test def catsEffect3 = projects.catsEffect3.run()
108108
@Test def cats = projects.cats.run()
109109
@Test def catsMtl = projects.catsMtl.run()
110+
@Test def coop = projects.coop.run()
110111
@Test def discipline = projects.discipline.run()
111112
@Test def disciplineMunit = projects.disciplineMunit.run()
112113
@Test def disciplineSpecs2 = projects.disciplineSpecs2.run()

0 commit comments

Comments
 (0)