Skip to content

Configurable BuildInfo #3597

Open
Open
@MartinHH

Description

@MartinHH

Is your feature request related to a problem? Please describe.

I'd like to use BuildInfo to access certain info, but the default generated BuildInfo contains details that I do not want to be contained (especially not in published artifacts), e.g. absolute file paths within my personal machine (potentially leaking personal info like my username).

Describe the solution you'd like
Ideally: a mechanism (ideally via directives) that allows to dis-/enable each possible field of the BuildInfo being generated.

Alternatively: a mechanism that allows to disable any fields of the BuildInfo being generated that may contain info about the file system of the build machine.

Describe alternatives you've considered

  1. switch to sbt and use https://github.com/sbt/sbt-buildinfo for my needs
  2. look into ways to exclude the unwanted fields from the published artifacts (I guess one could use ProGuard for something like this)

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions