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.
<dependency>
<groupId>com.vertexvis</groupId>
<artifactId>api-client-java</artifactId>
<version>0.11.0</version>
<scope>compile</scope>
</dependency>
compile "com.vertexvis:api-client-java:0.11.0"
libraryDependencies += "com.vertexvis" % "api-client-java" % "0.11.0"
First, generate the JAR.
mvn clean package
Then manually install the following JARs.
target/api-client-java-0.11.0.jar
target/lib/*.jar
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.
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.
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
- Make changes to the API client or custom generator
- Build and test with
./gradlew build
- Test locally with
./gradlew :api-client-library:publishToMavenLocal
To consume published snapshot versions in other projects, add the snapshot repository to your build configuration:
<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>
repositories {
mavenCentral()
maven {
url 'https://central.sonatype.com/repository/maven-snapshots/'
}
}
dependencies {
implementation 'com.vertexvis:api-client-java:0.11.0-SNAPSHOT'
}
To bump the version of all modules:
./scripts/bump-version.sh [patch|minor|major]
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.