mirror of https://github.com/sbt/sbt.git
Merge pull request #3634 from dwijnand/recompile247
[1.0.x] Track sources in base directory non-recursively
This commit is contained in:
commit
4c3cf6bfe7
|
|
@ -315,11 +315,13 @@ object Defaults extends BuildCommon {
|
|||
excludeFilter in unmanagedSources).value,
|
||||
watchSources in ConfigGlobal ++= {
|
||||
val baseDir = baseDirectory.value
|
||||
val bases = unmanagedSourceDirectories.value ++ (if (sourcesInBase.value) Seq(baseDir)
|
||||
else Seq.empty)
|
||||
val bases = unmanagedSourceDirectories.value
|
||||
val include = (includeFilter in unmanagedSources).value
|
||||
val exclude = (excludeFilter in unmanagedSources).value
|
||||
bases.map(b => new Source(b, include, exclude))
|
||||
val baseSources =
|
||||
if (sourcesInBase.value) Seq(new Source(baseDir, include, exclude, recursive = false))
|
||||
else Nil
|
||||
bases.map(b => new Source(b, include, exclude)) ++ baseSources
|
||||
},
|
||||
managedSourceDirectories := Seq(sourceManaged.value),
|
||||
managedSources := generate(sourceGenerators).value,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
[@dwijnand]: https://github.com/dwijnand
|
||||
|
||||
[#3501]: https://github.com/sbt/sbt/issues/3501
|
||||
[#3634]: https://github.com/sbt/sbt/pull/3634
|
||||
|
||||
### Fixes with compatibility implications
|
||||
|
||||
### Improvements
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Fixes `~` to recompile on loop (when a source generator or sbt-buildinfo is present). [#3501][]/[#3634][] by [@dwijnand][]
|
||||
|
|
@ -12,7 +12,7 @@ object Dependencies {
|
|||
val baseScalaVersion = scala212
|
||||
|
||||
// sbt modules
|
||||
private val ioVersion = "1.0.1"
|
||||
private val ioVersion = "1.0.2"
|
||||
private val utilVersion = "1.0.1"
|
||||
private val lmVersion = "1.0.2"
|
||||
private val zincVersion = "1.0.1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue