@@ -780,19 +780,6 @@ object Build {
780
780
}
781
781
782
782
lazy val dottySbtBridgeSettings = Seq (
783
- cleanSbtBridge := {
784
- cleanSbtBridgeImpl()
785
- },
786
- compile in Compile := {
787
- val log = streams.value.log
788
- val prev = (previousCompile in Compile ).value.analysis.orElse(null )
789
- val cur = (compile in Compile ).value
790
- if (prev != cur) {
791
- log.info(" Cleaning the dotty-sbt-bridge cache because it was recompiled." )
792
- cleanSbtBridgeImpl()
793
- }
794
- cur
795
- },
796
783
description := " sbt compiler bridge for Dotty" ,
797
784
resolvers += Resolver .typesafeIvyRepo(" releases" ), // For org.scala-sbt:api
798
785
libraryDependencies ++= Seq (
@@ -808,18 +795,6 @@ object Build {
808
795
parallelExecution in Test := false
809
796
)
810
797
811
- // Needed until https://github.com/sbt/sbt/issues/2402 is fixed.
812
- lazy val cleanSbtBridge = TaskKey [Unit ](" cleanSbtBridge" , " delete dotty-sbt-bridge cache" )
813
-
814
- def cleanSbtBridgeImpl (): Unit = {
815
- val home = System .getProperty(" user.home" )
816
- val sbtOrg = " org.scala-sbt"
817
- val bridgePattern = s " *dotty-sbt-bridge* $dottyVersion* "
818
-
819
- IO .delete((file(home) / " .sbt" / " 1.0" / " zinc" / sbtOrg * bridgePattern).get)
820
- IO .delete((file(home) / " .sbt" / " boot" * " scala-*" / sbtOrg / " sbt" * " *" * bridgePattern).get)
821
- }
822
-
823
798
lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).
824
799
dependsOn(dottyCompiler(NonBootstrapped ) % Provided ).
825
800
dependsOn(dottyDoc(NonBootstrapped ) % Provided ).
0 commit comments