net.adoptopenjdk.v3.vanilla

Adopt OpenJDK API (Vanilla client)

License

License

Categories

Categories

Java Languages Net
GroupId

GroupId

net.adoptopenjdk
ArtifactId

ArtifactId

net.adoptopenjdk.v3.vanilla
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

net.adoptopenjdk.v3.vanilla
Adopt OpenJDK API (Vanilla client)
Project URL

Project URL

http://github.com/AdoptOpenJDK/openjdk-api-java-client

Download net.adoptopenjdk.v3.vanilla

How to add to project

<!-- https://jarcasting.com/artifacts/net.adoptopenjdk/net.adoptopenjdk.v3.vanilla/ -->
<dependency>
    <groupId>net.adoptopenjdk</groupId>
    <artifactId>net.adoptopenjdk.v3.vanilla</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.adoptopenjdk/net.adoptopenjdk.v3.vanilla/
implementation 'net.adoptopenjdk:net.adoptopenjdk.v3.vanilla:0.4.0'
// https://jarcasting.com/artifacts/net.adoptopenjdk/net.adoptopenjdk.v3.vanilla/
implementation ("net.adoptopenjdk:net.adoptopenjdk.v3.vanilla:0.4.0")
'net.adoptopenjdk:net.adoptopenjdk.v3.vanilla:jar:0.4.0'
<dependency org="net.adoptopenjdk" name="net.adoptopenjdk.v3.vanilla" rev="0.4.0">
  <artifact name="net.adoptopenjdk.v3.vanilla" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.adoptopenjdk', module='net.adoptopenjdk.v3.vanilla', version='0.4.0')
)
libraryDependencies += "net.adoptopenjdk" % "net.adoptopenjdk.v3.vanilla" % "0.4.0"
[net.adoptopenjdk/net.adoptopenjdk.v3.vanilla "0.4.0"]

Dependencies

compile (5)

Group / Artifact Type Version
net.adoptopenjdk : net.adoptopenjdk.v3.api jar 0.4.0
com.fasterxml.jackson.core : jackson-databind jar 2.10.2
com.fasterxml.jackson.core : jackson-core jar 2.10.2
com.fasterxml.jackson.core : jackson-annotations jar 2.10.2
org.slf4j : slf4j-api jar 1.8.0-beta2

provided (3)

Group / Artifact Type Version
org.osgi : org.osgi.service.component.annotations jar 1.4.0
org.osgi : org.osgi.annotation.bundle jar 1.0.0
org.osgi : org.osgi.annotation.versioning jar 1.1.0

Project Modules

There are no modules declared in this project.

openjdk-api-java-client

Maven Central Maven Central (snapshot) Codecov

A Java client for the AdoptOpenJDK REST API.

adoptopenjdk

JVM Platform Status
OpenJDK LTS Linux Build (OpenJDK LTS, Linux)
OpenJDK Current Linux Build (OpenJDK Current, Linux)
OpenJDK Current Windows Build (OpenJDK Current, Windows)

Features

  • Efficient, type-safe access to the AdoptOpenJDK API
  • Clean API/implementation separation for easy API mocking in applications
  • JPMS-ready
  • OSGi-ready
  • High coverage automated test suite
  • Apache 2.0 license
  • Fully documented (JavaDOC)

Usage

Use the following Maven dependencies:

<dependency>
  <groupId>net.adoptopenjdk</groupId>
  <artifactId>net.adoptopenjdk.v3.api</artifactId>
  <version><!-- Insert latest version --></version>
</dependency>
<dependency>
  <groupId>net.adoptopenjdk</groupId>
  <artifactId>net.adoptopenjdk.v3.vanilla</artifactId>
  <version><!-- Insert latest version --></version>
</dependency>

The first dependency specifies that you want to use the API, and the second is a basic provider for the API.

Then:

var clients = new AOV3Clients();
try (var client = clients.createClient()) {
  var request = client.availableReleases(...);
  var releases = request.execute();
}

The API operates entirely synchronously and raises checked exceptions on failures.

The net.adoptopenjdk.v3.api.AOV3ClientProviderType interface is published both as a JPMS service and an OSGi service in order to allow for decoupling consumers from the vanilla implementation package:

var clients =
  ServiceLoader.load(AOV3ClientProviderType.class)
    .findFirst()
    .orElseThrow(() -> new IllegalStateException(
      String.format("No implementations of %s are available", AOV3ClientProviderType.class)));

try (var client = clients.createClient()) {
  var request = client.availableReleases(...);
  var releases = request.execute();
}
net.adoptopenjdk

AdoptOpenJDK

The Community and code behind the Build Farm which produces high quality, FREE OpenJDK (Java) binaries.

Versions

Version
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0