sbt / sbt-osgi

sbt plugin for creating OSGi bundles
Apache License 2.0
47 stars 43 forks source link

Implement a cache based on hashing of the inputs of bundleTask #100

Closed romainreuillon closed 8 months ago

romainreuillon commented 10 months ago

In case no file and no settings have been modified and the bundle exist do no generate it.

Add an opt-in key to avoid breaking things...

It solves https://github.com/sbt/sbt-osgi/issues/27

romainreuillon commented 10 months ago

Please do not merge yet. I am going to implement alternative cache strategy based on hash or on lastModified...

mdedetrich commented 8 months ago

Please do not merge yet. I am going to implement alternative cache strategy based on hash or on lastModified...

@romainreuillon Is this PR being worked on?

romainreuillon commented 8 months ago

Hi @mdedetrich, it is actually complete.

There are 2 caching modes: modification time based or hash based.

I'll implement an hybrid mode, checking modification time and then hash at some point but it requires way more work. I'll do that in a new PR.

This one is ready to merge.

mdedetrich commented 8 months ago

@romainreuillon Released as v0.9.10