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

com.github.javaclub.ToolBoxJar Maven / Gradle / Ivy

package com.github.javaclub;

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

import com.github.javaclub.Constants.JarPomProperties;
import com.github.javaclub.toolbox.ToolBox.Strings;

public final class ToolBoxJar {
	
	public static final String GROUP_ID = "com.github.javaclub";
	public static final String ARTIFACT_ID = "toolbox";
	
	static String VERSION = Strings.EMPTY;
	
	public static String getVersion() {
		if (Strings.isNotBlank(VERSION)) {
			return VERSION;
		}
		Properties pom =  null;
		try {
			pom = JarPomProperties.getJarPomProperties(GROUP_ID, ARTIFACT_ID);
			VERSION = pom.getProperty("version");
		} catch (IOException e) {
		}
		return VERSION;
	}

	public static void main(String[] args) {
		System.out.println(getVersion());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy