code: public static String getVersion() {
          String version = null;
  
          // try to load from maven properties first
          try {
              Properties p = new Properties();
              InputStream is = VersionHelper.class.getResourceAsStream("/META-INF/maven/io.redlink/redlink-sdk-java/pom.properties");
              if (is != null) {
                  p.load(is);
                  version = p.getProperty("version", "");
              }
          } catch (Exception e) {
              // ignore
          }
  
          // fallback to using Java API
          if (version == null) {
              Package aPackage = VersionHelper.class.getPackage();
              if (aPackage != null) {
                  version = aPackage.getImplementationVersion();
                  if (version == null) {
                      version = aPackage.getSpecificationVersion();
                  }
              }
          }
  
          // fallback to read pom.xml on testing
          if (version == null) {
              final MavenXpp3Reader reader = new MavenXpp3Reader();
              try {
                  Model model = reader.read(new FileReader(new File("pom.xml")));
                  version = model.getVersion();
              } catch (IOException | XmlPullParserException e) {
                  // ignore
              }
          }
  
          return version;
      }
docs: Get artifact current version
  
  @return version