private static String getLibraryVersion()

in src/main/java/software/amazon/msk/auth/iam/internals/UserAgentUtils.java [56:71]


    private static String getLibraryVersion() {
        String version = "unknown-version";

        try (InputStream inputStream = getVersionInfoFileAsStream()) {
            if (inputStream == null) {
                log.info("Unable to load version information for msk iam auth plugin");
            } else {
                Properties versionProperties = new Properties();
                versionProperties.load(inputStream);
                version = versionProperties.getProperty("version");
            }
        } catch (Exception e) {
            log.info("Unable to load version information for the running SDK: " + e.getMessage());
        }
        return version;
    }