@@ -780,19 +780,6 @@ object Build {
780780 }
781781
782782 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- },
796783 description := " sbt compiler bridge for Dotty" ,
797784 resolvers += Resolver .typesafeIvyRepo(" releases" ), // For org.scala-sbt:api
798785 libraryDependencies ++= Seq (
@@ -808,18 +795,6 @@ object Build {
808795 parallelExecution in Test := false
809796 )
810797
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-
823798 lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).
824799 dependsOn(dottyCompiler(NonBootstrapped ) % Provided ).
825800 dependsOn(dottyDoc(NonBootstrapped ) % Provided ).
0 commit comments