Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 984 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 984 Bytes

###GVM Java SDK

This library is for the purpose of interacting with the GVM REST API from within your Java project. It exposes various convenience methods for retrieving encapsulated data.

Using it is simple:

// def gvmClient = new GvmClient("http://dev.gvmtool.net")

// def candidates = gvmClient.getCandidates()
// candidates.each { println it.name }

// def versions = gvmClient.getVersionsFor("groovy")
// versions.each { println it.name }

GvmClient gvmClient = GvmClient.instance("https://api.sdkman.io/2");
String defaultVersion = gvmClient.getText("/candidates/default/java");
System.out.println("Default java version : " + defaultVersion);

Lots more features coming soon!!!

Distribution

GVM-SDK is currently distributed through Bintray

Download