File tree Expand file tree Collapse file tree 6 files changed +63
-7
lines changed Expand file tree Collapse file tree 6 files changed +63
-7
lines changed Original file line number Diff line number Diff line change 3636 if : ${{ steps.release.outputs.releases_created }}
3737 uses : gradle/gradle-build-action@v2
3838
39+ - name : Compile the openai-java-core project
40+ run : |
41+ ./gradlew :openai-java-core:compileJava :openai-java-core:compileTestJava -x test
42+
43+ - name : Run the Prism server
44+ run : |
45+ ./scripts/mock --daemon
46+
47+ - name : Setup GraalVM
48+ uses : graalvm/setup-graalvm@v1
49+ with :
50+ java-version : 21
51+ distribution : ' graalvm-community'
52+ cache : gradle
53+
54+ - name : Run tests on the openai-java-core project with the GraalVM native-image agent
55+ run : |
56+ ./gradlew :openai-java-core:test -x compileJava -x compileTestJava -x compileKotlin -x compileTestKotlin -PgraalvmAgent
57+
58+ - name : Check generated GraalVM file
59+ run : |
60+ echo "Checking for GraalVM agent metadata files..."
61+ DIRECTORY=openai-java-core/src/main/resources/META-INF/native-image
62+ if [ -d "$DIRECTORY" ] && [ "$(ls -A $DIRECTORY)" ]; then
63+ echo "Files found in $DIRECTORY:"
64+ ls -l $DIRECTORY
65+ else
66+ echo "No files found in $DIRECTORY"
67+ exit 1
68+ fi
69+
3970 - name : Publish to Sonatype
4071 if : ${{ steps.release.outputs.releases_created }}
4172 run : |-
Original file line number Diff line number Diff line change 11{
2- "." : " 2.15 .0"
2+ "." : " 2.16 .0"
33}
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 2.16.0 (2025-07-17)
4+
5+ Full Changelog: [ v2.15.0...v2.16.0] ( https://github.com/openai/openai-java/compare/v2.15.0...v2.16.0 )
6+
7+ ### Features
8+
9+ * ** client:** publish GraalVM metadata files ([ #534 ] ( https://github.com/openai/openai-java/issues/534 ) ) ([ e6b4fe0] ( https://github.com/openai/openai-java/commit/e6b4fe0f8690d9b513ab2b33c7bec685397b5438 ) )
10+
311## 2.15.0 (2025-07-17)
412
513Full Changelog: [ v2.14.0...v2.15.0] ( https://github.com/openai/openai-java/compare/v2.14.0...v2.15.0 )
Original file line number Diff line number Diff line change 22
33<!-- x-release-please-start-version -->
44
5- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/com.openai/openai-java )] ( https://central.sonatype.com/artifact/com.openai/openai-java/2.15 .0 )
6- [ ![ javadoc] ( https://javadoc.io/badge2/com.openai/openai-java/2.15 .0/javadoc.svg )] ( https://javadoc.io/doc/com.openai/openai-java/2.15 .0 )
5+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/com.openai/openai-java )] ( https://central.sonatype.com/artifact/com.openai/openai-java/2.16 .0 )
6+ [ ![ javadoc] ( https://javadoc.io/badge2/com.openai/openai-java/2.16 .0/javadoc.svg )] ( https://javadoc.io/doc/com.openai/openai-java/2.16 .0 )
77
88<!-- x-release-please-end -->
99
1010The OpenAI Java SDK provides convenient access to the [ OpenAI REST API] ( https://platform.openai.com/docs ) from applications written in Java.
1111
1212<!-- x-release-please-start-version -->
1313
14- The REST API documentation can be found on [ platform.openai.com] ( https://platform.openai.com/docs ) . Javadocs are available on [ javadoc.io] ( https://javadoc.io/doc/com.openai/openai-java/2.15 .0 ) .
14+ The REST API documentation can be found on [ platform.openai.com] ( https://platform.openai.com/docs ) . Javadocs are available on [ javadoc.io] ( https://javadoc.io/doc/com.openai/openai-java/2.16 .0 ) .
1515
1616<!-- x-release-please-end -->
1717
@@ -22,7 +22,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
2222### Gradle
2323
2424``` kotlin
25- implementation(" com.openai:openai-java:2.15 .0" )
25+ implementation(" com.openai:openai-java:2.16 .0" )
2626```
2727
2828### Maven
@@ -31,7 +31,7 @@ implementation("com.openai:openai-java:2.15.0")
3131<dependency >
3232 <groupId >com.openai</groupId >
3333 <artifactId >openai-java</artifactId >
34- <version >2.15 .0</version >
34+ <version >2.16 .0</version >
3535</dependency >
3636```
3737
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repositories {
88
99allprojects {
1010 group = " com.openai"
11- version = " 2.15 .0" // x-release-please-version
11+ version = " 2.16 .0" // x-release-please-version
1212}
1313
1414subprojects {
Original file line number Diff line number Diff line change 11plugins {
2+ id(" java" )
23 id(" openai.kotlin" )
34 id(" openai.publish" )
45}
@@ -43,3 +44,19 @@ dependencies {
4344 testImplementation(" org.mockito:mockito-junit-jupiter:5.14.2" )
4445 testImplementation(" org.mockito.kotlin:mockito-kotlin:4.1.0" )
4546}
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+ }
You can’t perform that action at this time.
0 commit comments