Skip to content

Commit ff7068f

Browse files
Merge pull request #9671 from dotty-staging/add-new-haoyi-libs
Add new Haoyi libs to the community build
2 parents 39cb257 + f2b9c10 commit ff7068f

File tree

8 files changed

+44
-4
lines changed

8 files changed

+44
-4
lines changed

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@
100100
[submodule "community-build/community-projects/scas"]
101101
path = community-build/community-projects/scas
102102
url = https://github.com/dotty-staging/scas.git
103+
[submodule "community-build/community-projects/fansi"]
104+
path = community-build/community-projects/fansi
105+
url = https://github.com/dotty-staging/fansi.git
106+
[submodule "community-build/community-projects/PPrint"]
107+
path = community-build/community-projects/PPrint
108+
url = https://github.com/dotty-staging/PPrint.git
109+
[submodule "community-build/community-projects/requests-scala"]
110+
path = community-build/community-projects/requests-scala
111+
url = https://github.com/dotty-staging/requests-scala.git
103112
[submodule "community-build/community-projects/cats-effect-2"]
104113
path = community-build/community-projects/cats-effect-2
105114
url = https://github.com/dotty-staging/cats-effect.git
Submodule PPrint added at 46eb823
Submodule fansi added at 2b6c6a9
Submodule upickle updated 41 files

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ sealed trait CommunityProject:
6060
/** Publish this project to the local Maven repository */
6161
final def publish(): Unit =
6262
if !published then
63+
dependencies.foreach(_.publish())
6364
log(s"Publishing $project")
6465
if publishCommand eq null then
6566
throw RuntimeException(s"Publish command is not specified for $project. Project details:\n$this")
@@ -134,12 +135,36 @@ object projects:
134135
dependencies = List(scalatest, scalacheck, scalatestplusScalacheck, geny, utest)
135136
)
136137

138+
lazy val upickleCore = MillCommunityProject(
139+
project = "upickle",
140+
baseCommand = s"core.jvm[$compilerVersion]",
141+
dependencies = List(scalatest, scalacheck, scalatestplusScalacheck, geny, utest)
142+
)
143+
137144
lazy val geny = MillCommunityProject(
138145
project = "geny",
139146
baseCommand = s"geny.jvm[$compilerVersion]",
140147
dependencies = List(utest)
141148
)
142149

150+
lazy val fansi = MillCommunityProject(
151+
project = "fansi",
152+
baseCommand = s"fansi.jvm[$compilerVersion]",
153+
dependencies = List(utest, sourcecode)
154+
)
155+
156+
lazy val pprint = MillCommunityProject(
157+
project = "PPrint",
158+
baseCommand = s"pprint.jvm[$compilerVersion]",
159+
dependencies = List(fansi)
160+
)
161+
162+
lazy val requests = MillCommunityProject(
163+
project = "requests-scala",
164+
baseCommand = s"requests[$compilerVersion]",
165+
dependencies = List(geny, utest, ujson, upickleCore)
166+
)
167+
143168
lazy val scas = MillCommunityProject(
144169
project = "scas",
145170
baseCommand = "scas.application"
@@ -403,8 +428,11 @@ class CommunityBuildTest:
403428
@Test def squants = projects.squants.run()
404429
@Test def stdLib213 = projects.stdLib213.run()
405430
@Test def ujson = projects.ujson.run()
406-
// @Test def upickle = projects.upickle.run()
431+
@Test def upickle = projects.upickle.run()
407432
@Test def utest = projects.utest.run()
433+
@Test def fansi = projects.fansi.run()
434+
@Test def pprint = projects.pprint.run()
435+
@Test def requests = projects.requests.run()
408436
@Test def xmlInterpolator = projects.xmlInterpolator.run()
409437
@Test def zio = projects.zio.run()
410438
end CommunityBuildTest

0 commit comments

Comments
 (0)