sdkman-native / sdkman-native-sdk-java

An sdk for the SDK Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

###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

About

An sdk for the SDK Manager

License:Apache License 2.0


Languages

Language:Groovy 51.2%Language:Java 48.8%