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 36
36
if : ${{ steps.release.outputs.releases_created }}
37
37
uses : gradle/gradle-build-action@v2
38
38
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
+
39
70
- name : Publish to Sonatype
40
71
if : ${{ steps.release.outputs.releases_created }}
41
72
run : |-
Original file line number Diff line number Diff line change 1
1
{
2
- "." : " 2.15 .0"
2
+ "." : " 2.16 .0"
3
3
}
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
11
## 2.15.0 (2025-07-17)
4
12
5
13
Full 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 2
2
3
3
<!-- x-release-please-start-version -->
4
4
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 )
7
7
8
8
<!-- x-release-please-end -->
9
9
10
10
The OpenAI Java SDK provides convenient access to the [ OpenAI REST API] ( https://platform.openai.com/docs ) from applications written in Java.
11
11
12
12
<!-- x-release-please-start-version -->
13
13
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 ) .
15
15
16
16
<!-- x-release-please-end -->
17
17
@@ -22,7 +22,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
22
22
### Gradle
23
23
24
24
``` kotlin
25
- implementation(" com.openai:openai-java:2.15 .0" )
25
+ implementation(" com.openai:openai-java:2.16 .0" )
26
26
```
27
27
28
28
### Maven
@@ -31,7 +31,7 @@ implementation("com.openai:openai-java:2.15.0")
31
31
<dependency >
32
32
<groupId >com.openai</groupId >
33
33
<artifactId >openai-java</artifactId >
34
- <version >2.15 .0</version >
34
+ <version >2.16 .0</version >
35
35
</dependency >
36
36
```
37
37
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repositories {
8
8
9
9
allprojects {
10
10
group = " com.openai"
11
- version = " 2.15 .0" // x-release-please-version
11
+ version = " 2.16 .0" // x-release-please-version
12
12
}
13
13
14
14
subprojects {
Original file line number Diff line number Diff line change 1
1
plugins {
2
+ id(" java" )
2
3
id(" openai.kotlin" )
3
4
id(" openai.publish" )
4
5
}
@@ -43,3 +44,19 @@ dependencies {
43
44
testImplementation(" org.mockito:mockito-junit-jupiter:5.14.2" )
44
45
testImplementation(" org.mockito.kotlin:mockito-kotlin:4.1.0" )
45
46
}
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