Generate and compile your first client
Start with one Greeting payload and the built-in ServiceResponse<T> envelope. Both builds use released 1.3.0 artifacts, official OpenAPI Generator 7.27.0, and the same Boot 4.1.2 / Jackson 3 RestClient dependency profile. These are example inputs, not support minima or build-tool requirements.
Use JDK 21. The included wrappers download Maven 3.9.9 or Gradle 9.9.1 on the first run. These versions make the example reproducible. Internet access is needed for the first build. No platform checkout build, local artifact install, producer process, BYOE or BYOC setup is needed.
Get the files
Download or clone the repository, then open quickstart from the checkout. To run the example elsewhere, copy the entire quickstart/ directory, including the hidden maven/.mvn/ directory. Both builds read the same spec.yaml.
The runnable files are the source of this tutorial and are built in CI against public repositories. They stay pinned to released platform dependencies while the repository itself develops 1.3.1-SNAPSHOT.
Inspect the input
spec.yaml contains one operation, one ordinary DTO and a concrete envelope schema. Its reconstruction metadata is:
x-api-wrapper: true
x-api-wrapper-type: io.github.blueprintplatform.openapi.generics.contract.envelope.ServiceResponse
x-api-wrapper-datatype: Greeting
A real Spring MVC producer emits this metadata from Java contracts. Here it is supplied directly so the first build needs no running server. The API’s info.version: 1.0 is independent of the platform artifact version.
Maven
From quickstart/:
cd maven
./mvnw clean verify
On Windows, run .\mvnw.cmd clean verify from quickstart/maven/.
The complete POM inherits the public codegen parent, declares the generator execution and includes shared contract and RestClient dependencies. Maven Central is Maven’s default repository. If your organization requires a corporate parent, read the parent decision before adapting it.
Expected wrapper: maven/target/generated-sources/openapi/src/gen/java/example/generated/model/ServiceResponseGreeting.java.
Gradle
From quickstart/:
cd gradle
./gradlew clean build
On Windows, run .\gradlew.bat clean build from quickstart/gradle/.
The settings resolve plugin markers through the public Plugin Portal. Content filters keep the platform implementation and dependency graph on Maven Central; the official OAG Gradle implementation is resolved from the Portal normally. This is channel selection, not a dependency/version override. The build applies both plugins and lets the platform register generated sources automatically.
Expected wrapper: gradle/build/generated/openapi/src/gen/java/example/generated/model/ServiceResponseGreeting.java.
For repeatable builds in your own project, add a wrapper for your selected supported Gradle version. The example does not use the repository’s development composite build or mavenLocal().
Verify the result
Both builds must succeed and generate:
public class ServiceResponseGreeting extends ServiceResponse<Greeting> {}
The ordinary Greeting DTO and API/invoker are generated by upstream JavaClientCodegen. The envelope comes from the shared contract artifact. The accompanying UseClient source calls the generated API and returns ServiceResponse<Greeting>; compilation verifies that assignment. Nothing calls a live HTTP endpoint in this example. Use the canonical application for direct/paged HTTP deserialization evidence.
Next: configure your client, explore envelopes/containers, BYOC, or troubleshooting.