openai/openai-java
Publicmirrored from https://github.com/openai/openai-javaAvailable
openai-java-core/build.gradle.kts
62lines · modeblame
6eb3f62eStainless Bot3 years ago | 1 | plugins { |
71cf8abdstainless-app[bot]1 years ago | 2 | id("java") |
6eb3f62eStainless Bot3 years ago | 3 | id("openai.kotlin") |
| 4 | id("openai.publish") | |
| 5 | } | |
| 6 | | |
d6a37429stainless-app[bot]1 years ago | 7 | configurations.all { |
| 8 | resolutionStrategy { | |
| 9 | // Compile and test against a lower Jackson version to ensure we're compatible with it. | |
| 10 | // We publish with a higher version (see below) to ensure users depend on a secure version by default. | |
| 11 | force("com.fasterxml.jackson.core:jackson-core:2.13.4") | |
| 12 | force("com.fasterxml.jackson.core:jackson-databind:2.13.4") | |
| 13 | force("com.fasterxml.jackson.core:jackson-annotations:2.13.4") | |
| 14 | force("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.4") | |
| 15 | force("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.4") | |
| 16 | force("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4") | |
| 17 | } | |
| 18 | } | |
| 19 | | |
6eb3f62eStainless Bot3 years ago | 20 | dependencies { |
412d7eb9stainless-app[bot]1 years ago | 21 | api("com.fasterxml.jackson.core:jackson-core:2.18.2") |
| 22 | api("com.fasterxml.jackson.core:jackson-databind:2.18.2") | |
e8fc6aa6Stainless Bot1 years ago | 23 | api("com.google.errorprone:error_prone_annotations:2.33.0") |
d8b19b7estainless-app[bot]1 years ago | 24 | api("io.swagger.core.v3:swagger-annotations:2.2.31") |
6eb3f62eStainless Bot3 years ago | 25 | |
412d7eb9stainless-app[bot]1 years ago | 26 | implementation("com.fasterxml.jackson.core:jackson-annotations:2.18.2") |
| 27 | implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2") | |
| 28 | implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2") | |
| 29 | implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2") | |
af9f9a27Robert Craigie2 years ago | 30 | implementation("org.apache.httpcomponents.core5:httpcore5:5.2.4") |
| 31 | implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1") | |
e123fdd3D Gardner1 years ago | 32 | implementation("com.github.victools:jsonschema-generator:4.38.0") |
| 33 | implementation("com.github.victools:jsonschema-module-jackson:4.38.0") | |
d8b19b7estainless-app[bot]1 years ago | 34 | implementation("com.github.victools:jsonschema-module-swagger-2:4.38.0") |
6eb3f62eStainless Bot3 years ago | 35 | |
| 36 | testImplementation(kotlin("test")) | |
af9f9a27Robert Craigie2 years ago | 37 | testImplementation(project(":openai-java-client-okhttp")) |
| 38 | testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.2") | |
| 39 | testImplementation("org.assertj:assertj-core:3.25.3") | |
| 40 | testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3") | |
| 41 | testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.3") | |
c843c0f2stainless-app[bot]1 years ago | 42 | testImplementation("org.junit-pioneer:junit-pioneer:1.9.1") |
c077dca5stainless-app[bot]1 years ago | 43 | testImplementation("org.mockito:mockito-core:5.14.2") |
| 44 | testImplementation("org.mockito:mockito-junit-jupiter:5.14.2") | |
| 45 | testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0") | |
6eb3f62eStainless Bot3 years ago | 46 | } |
71cf8abdstainless-app[bot]1 years ago | 47 | |
| 48 | if (project.hasProperty("graalvmAgent")) { | |
| 49 | java { | |
| 50 | toolchain { | |
| 51 | languageVersion.set(JavaLanguageVersion.of(21)) | |
| 52 | vendor.set(JvmVendorSpec.GRAAL_VM) | |
| 53 | } | |
| 54 | } | |
| 55 | | |
| 56 | tasks.test { | |
| 57 | maxParallelForks = 1 | |
| 58 | forkEvery = 0 | |
| 59 | jvmArgs = | |
| 60 | listOf("-agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image") | |
| 61 | } | |
| 62 | } |