Files
zeekay 83029b559c the install line names something that resolves, and the credential lives in the client
Maven Central has no ai.hanzo group — repo1.maven.org/maven2/ai/hanzo/ is a
404 — so the README printed coordinates that resolve nowhere. It now builds and
installs into the reader's own ~/.m2 and depends on that; the coordinates
return when an upload succeeds.

ai.hanzo.Hanzo moves the auth wiring out of examples/ and into the module.
The document declares no securitySchemes, so the generator registered no
credential: setAccessToken throws and a client built by hand goes out bare.
One hand-written file beside the generated package sets Authorization and
X-Org-Id, so a reader's first program wires up the same way the examples do
instead of copying a helper only the examples had. It survives regeneration —
sdks.yaml hands the generator ai/hanzo/cloud, not ai/hanzo.

Counts are measured rather than remembered: 2,479 operations over 192 API
classes and 2,461 models, from a document whose operation ids are identical to
what api.hanzo.ai serves. The agent flow asks for zen5, which the catalog has;
zen-1 was never a model.

Three dependencies nothing imports are gone (oltu, jakarta.ws.rs-api,
commons-lang3) — the oauth2 scheme whose generated classes they served is not
in this document. jakarta.annotation-api stays and stays on 1.x: every
generated type carries @javax.annotation.Generated, and 2.0 renames that
package.
2026-08-14 14:22:27 -07:00

29 lines
920 B
Groovy

// The repo root owns the build. The generator owns
// hanzo-java-cloud/src/main/java/ai/hanzo/cloud and nothing else — see
// scripts/generate.sh.
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
}
// Java 11 is the floor. Compiled with whatever JDK is present, targeted at
// 11, so the classes come out at major version 55.
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile).configureEach {
// Schema descriptions are copied into the sources as UTF-8; the
// platform default would mangle them.
options.encoding = 'UTF-8'
// 2,671 sources in one compile. The Gradle daemon heap in
// gradle.properties is not the compiler's, so fork one.
options.fork = true
options.forkOptions.jvmArgs = ['-Xmx6g']
}
}