Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API handle to get version of MapDB #1045

Open
lhaeger opened this issue Feb 14, 2024 · 1 comment
Open

API handle to get version of MapDB #1045

lhaeger opened this issue Feb 14, 2024 · 1 comment

Comments

@lhaeger
Copy link

lhaeger commented Feb 14, 2024

Following up on #301 it seems even ten years later nobody has come up with "some trick" to read the MapDB version in running VM from code (or Google failed miserably in finding it).

Would you please reconsider implementing a simple getVersion() method?

@lhaeger
Copy link
Author

lhaeger commented Feb 14, 2024

Alternatively, please add the following two lines to the MANIFEST.MF in the package jar file:

Implementation-Title: MapDB
Implementation-Version: 3.0.9

so something like

	public static String getMapDBVersion()
	{
		return org.mapdb.DB.class.getPackage().getImplementationVersion();
	}

will do the trick.

Currently, this only returns null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant