A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
582 B

  1. package org.ros.chatto.config;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.context.annotation.PropertySource;
  4. import org.springframework.stereotype.Component;
  5. import lombok.Getter;
  6. @Component
  7. @PropertySource(value = "classpath:git.properties")
  8. @Getter
  9. public class BuildInfo {
  10. private final String buildVersion;
  11. private final String branchName;
  12. public BuildInfo(@Value("${git.build.version") String buildVersion,
  13. @Value("${git.branch") String branchName) {
  14. this.buildVersion = buildVersion;
  15. this.branchName = branchName;
  16. }
  17. }