1.0.1
This is a hotfix release for sbt 1.0.x series.
Improvements
- Various improves around watch source feature. See below.
Bug fixes
- Fixes command support for cross building
+
command. The+
added to sbt 1.0 traveres over the subprojects, respectingcrossScalaVersions
; however, it no longer accepted commands as arguments. This brings back the support for it. #3446 by @jroper - Fixes
addSbtPlugin
to use the correct version of sbt during cross building. #3442 by @dwijnand - Fixes
run in Compile
task not includingRuntime
configuration, by reimplementingrun
in terms ofbgRun
. #3477 by @eed3si9n - Shows
actual
as a potential option ofinspect
#3335 by @Duhemm - Includes base directory to watched sources. #3439 by @Duhemm
- Adds an attempt to workaround intermittent
NullPointerException
arround logging. util#121 by @eed3si9n - Reverts a bad forward porting. #3481 by @eed3si9n
WatchSource
The watch source feature went through a major change from sbt 0.13 to sbt 1.0 using NIO; however, it did not have clear migration path, so we are rectifying that in sbt 1.0.1.
First, sbt.WatchSource
is a new alias for sbt.internal.io.Source
. Hopefully this is easy enough to remember because the key is named watchSources
. Next, def apply(base: File)
and def apply(base: File, includeFilter: FileFilter, excludeFilter: FileFilter)
constructors were added to the companion object of sbt.WatchSource
.
For backward compatiblity, sbt 1.0.1 adds +=
support (Append
instance) from File
to Seq[WatchSource]
.
So, if you have a directory you want to watch:
watchSources += WatchSource(sourceDirectory.value)
If you have a list of files:
watchSources ++= (sourceDirectory.value ** "*.scala").get