Skip to content

Vertexvis/vertex-api-client-java

Vertex API Client for Java

Version MIT License

If you're ready to integrate Vertex into your application, this is the place! For more background on the Vertex platform, start with our Developer Portal.

The Vertex REST API client for Java is generated using openapi-generator, so it's always up-to-date.

The client can be used with Java 1.8+ and pulled into Maven or Gradle projects.

Installation

Maven

<dependency>
  <groupId>com.vertexvis</groupId>
  <artifactId>api-client-java</artifactId>
  <version>0.11.0</version>
  <scope>compile</scope>
</dependency>

Gradle

compile "com.vertexvis:api-client-java:0.11.0"

Sbt

libraryDependencies += "com.vertexvis" % "api-client-java" % "0.11.0"

Others

First, generate the JAR.

mvn clean package

Then manually install the following JARs.

  • target/api-client-java-0.11.0.jar
  • target/lib/*.jar

Usage

If you're not an existing Vertex customer, sign up for a free account.

Export your credentials.

# Export your Vertex REST API client ID and secret
export VERTEX_CLIENT_ID=[YOUR_CLIENT_ID]
export VERTEX_CLIENT_SECRET=[YOUR_CLIENT_SECRET]

Then, check out our sample applications.

Local Development

This project uses a multi-module Gradle structure with convention plugins. For detailed information about the modules and their purposes, refer to the Multi-Module README.

Quick Start

The project now uses convention plugins in buildSrc/ which makes the build completely self-contained:

# Build everything (no separate plugin publishing needed)
./gradlew build

# Run example applications
./gradlew :examples:run
./gradlew :examples:listExamples

Development Workflow

  1. Make changes to the API client or custom generator
  2. Build and test with ./gradlew build
  3. Test locally with ./gradlew :api-client-library:publishToMavenLocal

Using Snapshot Versions

To consume published snapshot versions in other projects, add the snapshot repository to your build configuration:

Maven

<repositories>
  <repository>
    <id>central-snapshots</id>
    <url>https://central.sonatype.com/repository/maven-snapshots/</url>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

<dependency>
  <groupId>com.vertexvis</groupId>
  <artifactId>api-client-java</artifactId>
  <version>0.11.0-SNAPSHOT</version>
</dependency>

Gradle

repositories {
    mavenCentral()
    maven {
        url 'https://central.sonatype.com/repository/maven-snapshots/'
    }
}

dependencies {
    implementation 'com.vertexvis:api-client-java:0.11.0-SNAPSHOT'
}

Versioning

To bump the version of all modules:

./scripts/bump-version.sh [patch|minor|major]

Publishing

To publish to Maven Local for testing:

./gradlew :api-client-library:publishToMavenLocal

Snapshots are automatically published to Maven Central on pushes to the main branch. Releases are created when a new version tag is pushed.

About

The Vertex REST API client for Java.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 11