All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.clescot.kafka.connect.http.VersionUtils Maven / Gradle / Ivy

There is a newer version: 0.7.232
Show newest version
package io.github.clescot.kafka.connect.http;

import org.apache.kafka.connect.errors.ConnectException;

import java.io.IOException;
import java.util.Properties;

public class VersionUtils {


    public String getVersion(){
        final Properties properties = new Properties();
        try {
            properties.load(VersionUtils.class.getClassLoader().getResourceAsStream("project.properties"));
        } catch (IOException e) {
            throw new ConnectException(e);
        }
        return (String) properties.get("version");
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy