Spyderisk / system-modeller

Spyderisk web service and web client
Other
4 stars 4 forks source link

Switch off Java non-determinism in gradle #194

Open danshearer opened 4 months ago

danshearer commented 4 months ago

I propose to add this to the gradle build as a small step to address non-determinism in the infrastructure around Spyderisk:

tasks.withType(AbstractArchiveTask) {
    preserveFileTimestamps = false
    reproducibleFileOrder = true
}

It's a small step to support the goal of having reliable results from Spyderisk. Read more about it in the Gradle user docs.

We will not be aiming for computer science-level reproducibility for a long time yet. But small steps are worth taking such as nailing down version numbers, or (as in this Issue) making it so that versions don't matter.