41 lines
1.3 KiB
Groovy
41 lines
1.3 KiB
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "com.squareup.okhttp3"
|
|
module = "okhttp"
|
|
versions = "[3.0,)"
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
/*
|
|
Note: there is a bit of dependency exclusion magic goin on.
|
|
We have to exclude all transitive dependencies on 'okhttp' because we would like to force
|
|
specific version. We cannot use . Unfortunately we cannot just force version on
|
|
a dependency because this doesn't work well with version ranges - it doesn't select latest.
|
|
And we cannot use configurations to exclude this dependency from everywhere in one go
|
|
because it looks like exclusions using configurations excludes dependency even if it explicit
|
|
not transitive.
|
|
*/
|
|
dependencies {
|
|
compileOnly(group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.0.0')
|
|
|
|
implementation project(':javaagent-tooling')
|
|
|
|
testImplementation(project(':testing-common')) {
|
|
exclude module: 'okhttp'
|
|
}
|
|
testImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.0.0'
|
|
|
|
// 4.x.x-alpha has been released and it looks like there are lots of incompatible changes
|
|
latestDepTestImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '[3.11.0, 4.0.0*)'
|
|
}
|