-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (24 loc) · 936 Bytes
/
build.gradle
File metadata and controls
32 lines (24 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apply from: "$rootDir/gradle/java.gradle"
def minVer = '3.0.1'
muzzle {
pass {
group = "com.openai"
module = "openai-java"
versions = "[$minVer,)"
}
}
addTestSuiteForDir('latestDepTest', 'test')
dependencies {
compileOnly group: 'com.openai', name: 'openai-java', version: minVer
implementation project(':internal-api')
testImplementation group: 'com.openai', name: 'openai-java', version: minVer
latestDepTestImplementation group: 'com.openai', name: 'openai-java', version: '+'
testImplementation project(':dd-java-agent:instrumentation:okhttp:okhttp-3.0')
// Exclude the conflicting dependency to avoid NoSuchFieldError: Class okhttp3.MediaType does not have member field 'okhttp3.MediaType$Companion Companion'
configurations.testRuntimeClasspath {
exclude group: 'com.datadoghq.okhttp3'
}
configurations.latestDepTestRuntimeClasspath {
exclude group: 'com.datadoghq.okhttp3'
}
}