File tree 1 file changed +4
-12
lines changed 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -707,20 +707,12 @@ object Build {
707
707
708
708
lazy val dottySbtBridgeSettings = Seq (
709
709
cleanSbtBridge := {
710
- val dottySbtBridgeVersion = version.value
711
- val dottyVersion = (version in `dotty-compiler`).value
712
- val classVersion = System .getProperty(" java.class.version" )
713
-
714
- val sbtV = sbtVersion.value
715
- val sbtOrg = " org.scala-sbt"
716
- val sbtScalaVersion = " 2.10.6"
717
-
718
710
val home = System .getProperty(" user.home" )
719
- val org = organization.value
720
- val artifact = moduleName.value
711
+ val sbtOrg = " org.scala-sbt "
712
+ val bridgeDirectoryPattern = s " * ${dottyVersion} * "
721
713
722
- IO .delete(file(home) / " .ivy2" / " cache" / sbtOrg / s " $org - $artifact - $dottySbtBridgeVersion -bin_ ${dottyVersion} __ $classVersion " )
723
- IO .delete(file(home) / " .sbt" / " boot" / s " scala- $sbtScalaVersion " / sbtOrg / " sbt" / sbtV / s " $org - $artifact - $dottySbtBridgeVersion -bin_ ${dottyVersion} __ $classVersion " )
714
+ IO .delete(( file(home) / " .ivy2" / " cache" / sbtOrg * bridgeDirectoryPattern).get )
715
+ IO .delete(( file(home) / " .sbt" / " boot" * " scala-* " / sbtOrg / " sbt" * " * " * bridgeDirectoryPattern).get )
724
716
},
725
717
packageSrc in Compile := (packageSrc in Compile ).dependsOn(cleanSbtBridge).value,
726
718
description := " sbt compiler bridge for Dotty" ,
You can’t perform that action at this time.
0 commit comments