Closed Vzor- closed 4 years ago
We could probably generate it in maven, so that artifact version would be visible in code. I do the same in my project.
On Aoine 27 DFómh 2017 22:16 Kyle Berezin notifications@github.com wrote:
Hey, just wondering if you could toss a version number somewhere into the code. Since this is an io library it is nice to be able to programmatically check the version via an api call.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gary-rowe/hid4java/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/AFPs5fhXUprOEpqHbnfXlVvIJHoIOgNxks5swkgugaJpZM4QJoGx .
That would be fine, I prefer an in-code version but I'm not picky.
Hi! I'll be working on this library starting Mon 16th April in order to release version 0.6.0. I can take a look at this issue then.
Added support for this in develop
branch. Scheduled for release in 0.6.0+.
To test programmatically:
// Use default service settings for example
HidServices hidServices = HidManager.getHidServices();
hidServices.getVersion();
To test on develop
branch:
mvn clean package
java -cp target/hid4java-develop-SNAPSHOT.jar org.hid4java.HidServices
Output should be develop-SNAPSHOT
or 0.6.0
etc after release on master
.
Closing.
Hey, just wondering if you could toss a version number somewhere into the code. Since this is an io library it is nice to be able to programmatically check the version via an api call.