Skip to content

Commit 02c574f

Browse files
committed
community build: Add simulacrum-scalafix
This is a dependency of cats
1 parent 79003fc commit 02c574f

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@
129129
[submodule "community-build/community-projects/discipline-specs2"]
130130
path = community-build/community-projects/discipline-specs2
131131
url = https://github.com/typelevel/discipline-specs2.git
132+
[submodule "community-build/community-projects/simulacrum-scalafix"]
133+
path = community-build/community-projects/simulacrum-scalafix
134+
url = https://github.com/typelevel/simulacrum-scalafix.git

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ object Versions:
4141
val scalatest = "3.2.3"
4242
val munit = "0.7.19+DOTTY-SNAPSHOT"
4343
val scodecBits = "1.1+DOTTY-SNAPSHOT"
44+
val simulacrumScalafix = "0.5.1-SNAPSHOT"
4445

4546
sealed trait CommunityProject:
4647
private var published = false
@@ -123,6 +124,8 @@ final case class SbtCommunityProject(
123124
s""""org.typelevel" %% "discipline-munit_sjs1" % "${Versions.disciplineMunit}"""",
124125
s""""org.typelevel" %% "discipline-specs2" % "${Versions.disciplineSpecs2}"""",
125126
s""""org.typelevel" %% "discipline-specs2_sjs1" % "${Versions.disciplineSpecs2}"""",
127+
s""""org.typelevel" %% "simulacrum-scalafix-annotations" % "${Versions.simulacrumScalafix}"""",
128+
s""""org.typelevel" %% "simulacrum-scalafix-annotations_sjs1" % "${Versions.simulacrumScalafix}"""",
126129
)
127130

128131
private val baseCommand =
@@ -485,6 +488,12 @@ object projects:
485488
dependencies = List(discipline)
486489
)
487490

491+
lazy val simulacrumScalafixAnnotations = SbtCommunityProject(
492+
project = "simulacrum-scalafix",
493+
sbtTestCommand = "annotation/test:compile;annotationJS/test:compile",
494+
sbtPublishCommand = "annotation/publishLocal;annotationJS/publishLocal",
495+
)
496+
488497
end projects
489498

490499
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
@@ -127,6 +127,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
127127
@Test def scas = projects.scas.run()
128128
@Test def sconfig = projects.sconfig.run()
129129
@Test def shapeless = projects.shapeless.run()
130+
@Test def simulacrumScalafixAnnotations = projects.simulacrumScalafixAnnotations.run()
130131
@Test def stdLib213 = projects.stdLib213.run()
131132
@Test def verify = projects.verify.run()
132133
@Test def xmlInterpolator = projects.xmlInterpolator.run()

0 commit comments

Comments
 (0)