vlbaluk / java-validator-livr

Lightweight java validator supporting Language Independent Validation Rules Specification (LIVR)
13 stars 10 forks source link

Version is null #2

Open DanielHreben opened 6 years ago

DanielHreben commented 6 years ago

I need to get the current version of livr implementation at runtime. This is required to automatically display it at http://livr-multi-playground.webbylab.com/. I have no idea how to get it since I'm not a Java programmer, but I googled and I tried next ways:

String livrVersion = Class.forName("livr.LIVR").getPackage().getSpecificationVersion();
String livrVersion = LIVR.validator().getClass().getPackage().getSpecificationVersion();

In both cases livrString is null