001/*
002 * SPDX-FileCopyrightText: none
003 * SPDX-License-Identifier: CC0-1.0
004 */
005
006package gov.nist.secauto.oscal.lib;
007
008import gov.nist.secauto.metaschema.core.util.IVersionInfo;
009
010/**
011 * Provides version information for this library.
012 */
013public final class LibOscalVersion implements IVersionInfo {
014  private static final String NAME = "liboscal-java";
015  private static final String BUILD_VERSION = "5.1.0";
016  private static final String BUILD_TIMESTAMP = "2024-11-26 16:40";
017  private static final String COMMIT = "2f3a394";
018  private static final String BRANCH = "2f3a394fa856e2bc90b74425c639c9bc107ea4e6";
019  private static final String CLOSEST_TAG = "";
020  private static final String ORIGIN = "https://github.com/metaschema-framework/liboscal-java";
021
022  @Override
023  public String getName() {
024    return NAME;
025  }
026
027  @Override
028  public String getVersion() {
029    return CLOSEST_TAG;
030  }
031
032  @Override
033  public String getBuildTimestamp() {
034    return BUILD_TIMESTAMP;
035  }
036
037  @Override
038  public String getGitOriginUrl() {
039    return ORIGIN;
040  }
041
042  @Override
043  public String getGitCommit() {
044    return COMMIT;
045  }
046
047  @Override
048  public String getGitBranch() {
049    return BRANCH;
050  }
051
052  @Override
053  public String getGitClosestTag() {
054    return CLOSEST_TAG;
055  }
056}