Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openai-java-client-okhttp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ dependencies {
testImplementation("commons-io:commons-io:2.22.0") {
because("WireMock's transitive Commons IO version has a resource-exhaustion vulnerability")
}
testImplementation("com.jayway.jsonpath:json-path:2.10.0") {
because("WireMock's transitive JSONPath version has a stack-overflow vulnerability")
}
}

api(project(":openai-java-core"))
Expand Down
3 changes: 3 additions & 0 deletions openai-java-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dependencies {
testImplementation("commons-io:commons-io:2.22.0") {
because("WireMock's transitive Commons IO version has a resource-exhaustion vulnerability")
}
testImplementation("com.jayway.jsonpath:json-path:2.10.0") {
because("WireMock's transitive JSONPath version has a stack-overflow vulnerability")
}
}

api("com.fasterxml.jackson.core:jackson-core:$jacksonPublishedVersion")
Expand Down
7 changes: 7 additions & 0 deletions openai-java-spring-boot-starter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ dependencies {
testImplementation("org.xmlunit:xmlunit-core:2.11.0") {
because("2.10.0 fixes CVE-2024-31573 in this test-only dependency")
}
testImplementation("com.jayway.jsonpath:json-path:2.10.0") {
Comment thread
jbeckwith-oai marked this conversation as resolved.
because("Spring Boot's transitive JSONPath version has a stack-overflow vulnerability")
}
testImplementation("org.slf4j:slf4j-api") {
version { strictly("1.7.36") }
because("Spring Boot 2.7 and Logback 1.2 require SLF4J 1.7 at test runtime")
}
}

api(project(":openai-java"))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.springboot

import com.openai.client.OpenAIClient
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.boot.SpringBootConfiguration
import org.springframework.boot.WebApplicationType
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.builder.SpringApplicationBuilder

internal class SpringBootLoggingCompatibilityTest {

@Test
fun springApplicationStartsWithBootLogging() {
SpringApplicationBuilder(TestApplication::class.java)
.web(WebApplicationType.NONE)
.properties("openai.api-key=test")
.run()
.use { context -> assertThat(context.getBean(OpenAIClient::class.java)).isNotNull() }
}

@SpringBootConfiguration @EnableAutoConfiguration internal open class TestApplication
}
Loading