mirror of
https://github.com/hanzo-java/sdk.git
synced 2026-11-20 20:02:20 +00:00
Regenerated with the java row's packages moved up a level: `cloud` under ai.hanzo named nothing a caller needed. ApiClient, JSON and the rest of the invoker sit in ai.hanzo beside the hand-written Hanzo; the examples are ai.hanzo.examples. An import of ai.hanzo.cloud.* becomes ai.hanzo.*. The artifact keeps its coordinate, ai.hanzo:hanzo-java-cloud. Co-authored-by: Hanzo Dev <[email protected]>
29 lines
940 B
Groovy
29 lines
940 B
Groovy
// The repo root owns the build. The generator owns
|
|
// the files it writes under hanzo-java-cloud/src/main/java/ai/hanzo 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']
|
|
}
|
|
}
|