-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package.keepTimestamps, Package.fixed2010Timestamp, and Package.gitCo…
…mmitDate Fixes sbt#6235 In sbt 1.4.0 (sbt#5344) we started wiping out the timestamps in JAR to make the builds more repeatable. This had an unintended consequence of breaking Play's last-modified response header (playframework/playframework#10572). This adds an opt-out from the default: ```scala ThisBuild / packageOptions += Package.keepTimestamps ``` Before ------ ``` $ ll example total 32 -rw-r--r-- 1 eed3si9n wheel 901 Jan 1 1970 Greeting.class -rw-r--r-- 1 eed3si9n wheel 3079 Jan 1 1970 Hello$.class -rw-r--r-- 1 eed3si9n wheel 738 Jan 1 1970 Hello$delayedInit$body.class -rw-r--r-- 1 eed3si9n wheel 875 Jan 1 1970 Hello.class ``` After ----- ``` $ ll target/scala-2.13/hello_2.13-0.1.0-SNAPSHOT/example total 32 -rwxr-xr-x 1 eed3si9n wheel 901 Jan 3 12:20 Greeting.class* -rwxr-xr-x 1 eed3si9n wheel 3079 Jan 3 12:20 Hello$.class* -rwxr-xr-x 1 eed3si9n wheel 738 Jan 3 12:20 Hello$delayedInit$body.class* -rwxr-xr-x 1 eed3si9n wheel 875 Jan 3 12:20 Hello.class* ```
- Loading branch information
Showing
2 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters