Skip to content

VersionInfo resolution ambiguity #16

@seregamorph

Description

@seregamorph

VersionInfo class loads resource "/version.properties" which name is too broad. E.g. in one of the projects I've found dozens of files with matching name in the classpath.
As a result, the VersionInfo is resolved wrong:
Image

Possible solutions:

  • rely on Implementation-Version property in MANIFEST.MF and resolve it via VersionInfo.class.getPackage().getImplementationVersion()
  • use more specific name like including full package as directory or in prefix ("/spring-test-profiler-version.properties")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions