Skip to content

Commit

Permalink
feat(build): reproducible build
Browse files Browse the repository at this point in the history
Closes #4661
  • Loading branch information
squakez committed Oct 8, 2024
1 parent 6181a8a commit b0b6020
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/builder/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"os"
"path/filepath"
"strings"
"time"

"github.com/apache/camel-k/v2/pkg/util/boolean"

Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit b0b6020

Please sign in to comment.