File tree 2 files changed +13
-1
lines changed
sbt-dotty/src/dotty/tools/sbtplugin
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ object Build {
864
864
settings(commonSettings).
865
865
settings(
866
866
version := {
867
- val base = " 0.2.0 "
867
+ val base = " 0.2.1 "
868
868
if (isRelease) base else base + " -SNAPSHOT"
869
869
},
870
870
Original file line number Diff line number Diff line change @@ -141,6 +141,18 @@ object DottyPlugin extends AutoPlugin {
141
141
incOptions.withExternalHooks(hooks)
142
142
}
143
143
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
+
144
156
override def projectSettings : Seq [Setting [_]] = {
145
157
Seq (
146
158
isDotty := scalaVersion.value.startsWith(" 0." ),
You can’t perform that action at this time.
0 commit comments