https://kotlinlang.org logo
#announcements
Title
# announcements
s

snackycracky

10/04/2019, 2:10 PM
hey people, I try to do a reproducible build with ktor. I mean whenever I want to build a jar file and I didn’t change anything in the source then the jar should be exactly the same. It works for my spring-boot services but not for the ktor services: https://dzone.com/articles/reproducible-builds-in-java could someone achieve this and how ?
I got it working with this in my gradle.build
Copy code
jar {
    preserveFileTimestamps = false
    reproducibleFileOrder = true
}
ref: https://github.com/johnrengelman/shadow/issues/389#issuecomment-440416343