From b0b602060b1ec9a7b4f6d76f1a0938fbce0b703b Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 7 Oct 2024 21:28:37 +0200 Subject: [PATCH] feat(build): reproducible build Closes #4661 --- pkg/builder/quarkus.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/builder/quarkus.go b/pkg/builder/quarkus.go index 000155fdd4..2a0b7b77a8 100644 --- a/pkg/builder/quarkus.go +++ b/pkg/builder/quarkus.go @@ -23,6 +23,7 @@ import ( "os" "path/filepath" "strings" + "time" "github.com/apache/camel-k/v2/pkg/util/boolean" @@ -139,7 +140,8 @@ func generateQuarkusProjectCommon(runtimeVersion string, quarkusPlatformVersion // set fast-jar packaging by default, since it gives some startup time improvements p.Properties.Add("quarkus.package.type", "fast-jar") - + // Reproducible builds: https://maven.apache.org/guides/mini/guide-reproducible-builds.html + p.Properties.Add("project.build.outputTimestamp", time.Now().Format(time.RFC3339)) // DependencyManagement p.DependencyManagement.Dependencies = append(p.DependencyManagement.Dependencies, maven.Dependency{