File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -559,6 +559,32 @@ object DottyInjectedPlugin extends AutoPlugin {
559
559
).
560
560
settings(publishing)
561
561
562
+ // sbt >= 0.13.12 will automatically rewrite transitive dependencies on
563
+ // any version in any organization of scala{-library,-compiler,-reflect,p}
564
+ // to have organization `scalaOrganization` and version `scalaVersion`
565
+ // (see https://github.com/sbt/sbt/pull/2634).
566
+ // This means that we need to provide dummy artefacts for these projects,
567
+ // otherwise users will get compilation errors if they happen to transitively
568
+ // depend on one of these projects.
569
+ lazy val `scala-compiler` = project.
570
+ settings(
571
+ crossPaths := false ,
572
+ libraryDependencies := Seq (scalaCompiler)
573
+ ).
574
+ settings(publishing)
575
+ lazy val `scala-reflect` = project.
576
+ settings(
577
+ crossPaths := false ,
578
+ libraryDependencies := Seq (" org.scala-lang" % " scala-reflect" % scalaVersion.value)
579
+ ).
580
+ settings(publishing)
581
+ lazy val `scalap` = project.
582
+ settings(
583
+ crossPaths := false ,
584
+ libraryDependencies := Seq (" org.scala-lang" % " scalap" % scalaVersion.value)
585
+ ).
586
+ settings(publishing)
587
+
562
588
lazy val publishing = Seq (
563
589
publishMavenStyle := true ,
564
590
publishArtifact := true ,
You can’t perform that action at this time.
0 commit comments