From 4e7ff2a6b7caa71e12ce52c458798de8f27ed8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Chantepie?= Date: Thu, 30 Dec 2021 15:20:17 +0100 Subject: [PATCH] Add ReactiveMongo-BSON to community-build --- .gitmodules | 3 +++ community-build/README.md | 5 +++-- community-build/community-projects/ReactiveMongo-BSON | 1 + .../src/scala/dotty/communitybuild/projects.scala | 8 ++++++++ .../scala/dotty/communitybuild/CommunityBuildTest.scala | 1 + 5 files changed, 16 insertions(+), 2 deletions(-) create mode 160000 community-build/community-projects/ReactiveMongo-BSON diff --git a/.gitmodules b/.gitmodules index e35eb824949a..f38a21755571 100644 --- a/.gitmodules +++ b/.gitmodules @@ -219,3 +219,6 @@ [submodule "community-build/community-projects/spire"] path = community-build/community-projects/spire url = https://github.com/dotty-staging/spire.git +[submodule "community-build/community-projects/ReactiveMongo-BSON"] + path = community-build/community-projects/ReactiveMongo-BSON + url = https://github.com/ReactiveMongo/ReactiveMongo-BSON.git diff --git a/community-build/README.md b/community-build/README.md index 297aad93ec46..ceb5ef911b2e 100644 --- a/community-build/README.md +++ b/community-build/README.md @@ -18,5 +18,6 @@ To add your project to the community build you can follow these steps: 2. Open a PR against this repo that: - Adds your project as a new git submodule - `git submodule add https://github.com/lampepfl/XYZ.git community-build/community-projects/XYZ` - - Add the project to [projects.scala](https://github.com/lampepfl/dotty/blob/master/community-build/src/scala/dotty/communitybuild/projects.scala) - - Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/master/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala) + - Add the project to [projects.scala](https://github.com/lampepfl/dotty/blob/master/community-build/src/scala/dotty/communitybuild/projects.scala). + - Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/master/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala). + - Make sure the test supports `-Ysafe-init`. diff --git a/community-build/community-projects/ReactiveMongo-BSON b/community-build/community-projects/ReactiveMongo-BSON new file mode 160000 index 000000000000..f4e89d98eeb9 --- /dev/null +++ b/community-build/community-projects/ReactiveMongo-BSON @@ -0,0 +1 @@ +Subproject commit f4e89d98eeb92e27b34a0eab45b5dd7c4180ee29 diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index 23b37c042388..d5fc2fdca304 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -745,6 +745,13 @@ object projects: dependencies = List(cats, disciplineMunit) ) + lazy val ReactiveMongoBson = SbtCommunityProject( + project = "ReactiveMongo-BSON", + sbtTestCommand = "api/testOnly", + sbtPublishCommand = "api/publishLocal", + dependencies = List() + ) + end projects def allProjects = List( @@ -824,6 +831,7 @@ def allProjects = List( projects.libretto, projects.jacksonModuleScala, projects.specs2, + projects.ReactiveMongoBson, ) lazy val projectMap = allProjects.groupBy(_.project) diff --git a/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala b/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala index 4aad0e26d265..2a6e71910f9c 100644 --- a/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala +++ b/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala @@ -99,4 +99,5 @@ class CommunityBuildTestC: @Test def utest = projects.utest.run() @Test def verify = projects.verify.run() @Test def xmlInterpolator = projects.xmlInterpolator.run() + @Test def reactiveMongoBson = projects.ReactiveMongoBson.run() end CommunityBuildTestC