redis.clients.jedis.JedisMetaInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis;
import java.io.InputStream;
import java.util.Properties;
import org.slf4j.LoggerFactory;
/**
* Jedis Meta info load version groupId
*/
class JedisMetaInfo {
private static final String groupId;
private static final String artifactId;
private static final String version;
static {
Properties p = new Properties();
try (InputStream in = JedisMetaInfo.class.getClassLoader()
.getResourceAsStream("redis/clients/jedis/pom.properties")) {
p.load(in);
} catch (Exception e) {
LoggerFactory.getLogger(JedisMetaInfo.class)
.error("Load Jedis meta info from pom.properties failed", e);
}
groupId = p.getProperty("groupId", null);
artifactId = p.getProperty("artifactId", null);
version = p.getProperty("version", null);
}
public static String getGroupId() {
return groupId;
}
public static String getArtifactId() {
return artifactId;
}
public static String getVersion() {
return version;
}
}