Skip to content

Commit ad24812

Browse files
committed
community build: build scalaJava8Compat/fnGen with Scala 2.12
The code uses the Scala 2 compiler API
1 parent 309b54b commit ad24812

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,10 @@ object projects:
510510

511511
lazy val scalaJava8Compat = SbtCommunityProject(
512512
project = "scala-java8-compat",
513-
sbtTestCommand = "test",
514-
sbtPublishCommand = "publishLocal",
513+
// the fnGen subproject must be built with 2.12.x
514+
sbtTestCommand = s"++2.12.14; ++$compilerVersion; set fnGen/dependencyOverrides := Nil; test",
515+
sbtPublishCommand = s"++2.12.14; ++$compilerVersion; set fnGen/dependencyOverrides := Nil; publishLocal",
516+
scalacOptions = Nil // avoid passing Scala 3 options to Scala 2.12 in fnGen subproject
515517
)
516518

517519
lazy val verify = SbtCommunityProject(

0 commit comments

Comments
 (0)