This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
Import sbt-web's incremental build support #207
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes sbt/sbt#4940
This is an import of sbt-webs incremental build support:
https://github.com/sbt/sbt-web/blob/8ddcba1d8a27da79071d2af9c7734524b910f542/src/main/scala/com/typesafe/sbt/web/incremental/package.scala
This offers change tracking not just of files, but of settings as well, and also allows for including input files that are not discovered until compilation (eg files that are imported).
It's been successfully used by a large number of sbt-web plugins, and would be useful outside of sbt-web too, anything that does compilation, can track dependent files of a single compilation unit, and is dependent upon user defined settings, would find it useful.
It has been changed from sbt-web to use CacheStore with JSON, and also to use the FileInfo.Style abstraction to allow users to select whether they want hashing or last modified change detection - sbt-web only used hashing.