Skip to content

Commit

Permalink
Remove reflectedFields macro
Browse files Browse the repository at this point in the history
This macro is problematic because the community buid can be compiled on the non-bootstrapped library.
  • Loading branch information
nicolasstucki committed Jan 18, 2021
1 parent d8aab99 commit e7f30ba
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 29 deletions.
9 changes: 0 additions & 9 deletions community-build/src/scala/dotty/communitybuild/Fields.scala

This file was deleted.

17 changes: 0 additions & 17 deletions community-build/src/scala/dotty/communitybuild/FieldsImpl.scala

This file was deleted.

65 changes: 63 additions & 2 deletions community-build/src/scala/dotty/communitybuild/projects.scala
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ object projects:
sbtDocCommand = ";core/doc ;akka/doc ;shapelessScanner/doc"
)

lazy val ScalaPB = SbtCommunityProject(
lazy val scalaPB = SbtCommunityProject(
project = "ScalaPB",
sbtTestCommand = "dotty-community-build/compile",
// aggregateDoc("runtimeJVM")("scalapbc", "grpcRuntime", "compilerPlugin") fails with
Expand Down Expand Up @@ -630,6 +630,67 @@ object projects:

end projects

def allProjects = projects.reflectedFields.of[CommunityProject].sortBy(_.project)
def allProjects = List(
projects.utest,
projects.sourcecode,
projects.oslib,
projects.oslibWatch,
projects.ujson,
projects.upickle,
projects.upickleCore,
projects.geny,
projects.fansi,
projects.pprint,
projects.requests,
projects.scas,
projects.intent,
projects.algebra,
projects.scalacheck,
projects.scalatest,
projects.scalatestplusScalacheck,
projects.scalatestplusJunit,
projects.scalaXml,
projects.scalap,
projects.betterfiles,
projects.scalaPB,
projects.minitest,
projects.fastparse,
projects.stdLib213,
projects.shapeless,
projects.xmlInterpolator,
projects.effpi,
projects.sconfig,
projects.zio,
projects.munit,
projects.scodecBits,
projects.scodec,
projects.scalaParserCombinators,
projects.dottyCpsAsync,
projects.scalaz,
projects.endpoints4s,
projects.catsEffect2,
projects.catsEffect3,
projects.scalaParallelCollections,
projects.scalaCollectionCompat,
projects.verify,
projects.discipline,
projects.disciplineMunit,
projects.disciplineSpecs2,
projects.simulacrumScalafixAnnotations,
projects.cats,
projects.catsMtl,
projects.coop,
projects.scissEqual,
projects.scissFingerTree,
projects.scissLog,
projects.scissModel,
projects.scissNumbers,
projects.scissSerial,
projects.scissAsyncFile,
projects.scissSpan,
projects.scalaSTM,
projects.scissLucre,
projects.izumiReflect,
)

lazy val projectMap = allProjects.map(p => p.project -> p).toMap
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
@Test def scodecBits = projects.scodecBits.run()
@Test def scalap = projects.scalap.run()
@Test def scalaParserCombinators = projects.scalaParserCombinators.run()
@Test def ScalaPB = projects.ScalaPB.run()
@Test def scalaPB = projects.scalaPB.run()
@Test def scalaXml = projects.scalaXml.run()
@Test def scas = projects.scas.run()
@Test def sconfig = projects.sconfig.run()
Expand Down

0 comments on commit e7f30ba

Please sign in to comment.