This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new b0b602060 feat(build): reproducible build
b0b602060 is described below

commit b0b602060b1ec9a7b4f6d76f1a0938fbce0b703b
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Mon Oct 7 21:28:37 2024 +0200

    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 000155fdd..2a0b7b77a 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{

Reply via email to