Target develop branch of io, support SOURCE_DATE_EPOCH

This commit is contained in:
Arnout Engelen 2019-11-23 10:11:03 +01:00
parent ceb28a0a41
commit 4353098454
1 changed files with 6 additions and 1 deletions

View File

@ -1409,7 +1409,12 @@ object Defaults extends BuildCommon {
Def.task {
val config = packageConfiguration.value
val s = streams.value
Package(config, s.cacheStoreFactory, s.log, Some(0))
Package(
config,
s.cacheStoreFactory,
s.log,
sys.env.get("SOURCE_DATE_EPOCH").map(_.toLong).orElse(Some(0L))
)
config.jar
}