File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
sbt-dotty/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ object Build {
864864 settings(commonSettings).
865865 settings(
866866 version := {
867- val base = " 0.2.0 "
867+ val base = " 0.2.1 "
868868 if (isRelease) base else base + " -SNAPSHOT"
869869 },
870870
Original file line number Diff line number Diff line change @@ -141,6 +141,18 @@ object DottyPlugin extends AutoPlugin {
141141 incOptions.withExternalHooks(hooks)
142142 }
143143
144+ override val globalSettings : Seq [Def .Setting [_]] = Seq (
145+ onLoad in Global := onLoad.in(Global ).value.andThen { state =>
146+ val sbtV = sbtVersion.value
147+ sbtFullVersion(sbtV) match {
148+ case Some ((1 , sbtMinor, sbtPatch)) if sbtMinor > 1 || (sbtMinor == 1 && sbtPatch >= 4 ) =>
149+ case _ =>
150+ sys.error(s " The sbt-dotty plugin cannot work with this version of sbt ( $sbtV), sbt >= 1.1.4 is required. " )
151+ }
152+ state
153+ }
154+ )
155+
144156 override def projectSettings : Seq [Setting [_]] = {
145157 Seq (
146158 isDotty := scalaVersion.value.startsWith(" 0." ),
You can’t perform that action at this time.
0 commit comments