Comments (7)
You want sbt-assembly to produce a file only when it hasn't changed since the last time it built it?
Given that it incorporates dependencies from jar etc, relying only on timestamp seems like asking for trouble. I can imagine many of the build users making the exact opposite request that assembly should keep it simple, and always build everything from scratch when the user types "assembly".
Rather than embedding this logic into sbt-assembly, I think this is something that should be solved at sbt level perhaps reusing the logic from trigged execution. /cc @harrah
from sbt-assembly.
@eed3si9n I think it is reasonable for assembly to only rebuild the assembly if any of the timestamps of the inputs have changed. This is what sbt does for making jars, for example. See FileFunction for caching basic Set[File] => Set[File]
functions, for example. There isn't a good built-in caching API because I haven't come up with one I like. You can see what is used for packaging, though.
from sbt-assembly.
@harrah Is caching done in-memory or using files? In other words, would package/assembly across multiple runs of sbt still be cached?
from sbt-assembly.
@eed3si9n files. The cache information is stored in a file. You could imagine a special task (similar to streams) being available to give every task its own unique cache file, but you have to manually construct it right now.
from sbt-assembly.
released 0.8.5 with this feature.
from sbt-assembly.
Awesome!
Thanks,
--Adam
from sbt-assembly.
caching is optional for 0.8.6:
assemblyCacheOutput in assembly := true
from sbt-assembly.
Related Issues (20)
- Inconsistent merge strategy logging vs counts
- Logback does not work with รผber-JAR HOT 1
- Migrate to `com.github.sbt`? HOT 1
- Assembly no longer creating directories defined in assemblyOutputPath HOT 4
- executable jar args
- Concatenating files without a newline HOT 4
- META-INF/javax.annotation.processing.Processor is included empty when shading is enabled - log4j HOT 1
- Add setting to allow adding arbitrary files to output Jar HOT 1
- Merge error not comprehensible HOT 3
- Definition of a repeatable build HOT 1
- InvalidPathException on Assembly 2.1.1 HOT 13
- Current alternative to assembledMappings HOT 6
- Document log4j2 plugins custom merge strategy HOT 2
- sbt clean assembly fails
- issue with zip64 headers in jars generated using sbt-assembly HOT 1
- Files from project's sources overwrite merged dependencies (2.0.0 regression)
- Shading breaks META-INF/services (1.2.0 regression) HOT 1
- Exception thrown "pomProperties" is null
- Abort build if shading fails HOT 1
- question about Mappings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-assembly.