Skip to content

Make it possible for the output from the BuildInfo task to be repeatable #14494

Closed
@sdavids

Description

@sdavids

Follow-up to #8391

The build-info.properties file contains a timestamp in the header comment, this leads to non-reproducible builds.

https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/gradle-plugin/reference/html/#integrating-with-actuator-build-info

springBoot {
  buildInfo {
    properties {
      time = null
    }
  }
}

Will remove the build.time property, but the timestamp in the header comment will be changed on every build:

#Properties
#Mon Sep 17 17:34:11 CEST 2018
build.artifact=example-artifact
build.group=example-group
build.name=example-name
build.version=1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions