okhttp-3.0.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply from: "$rootDir/gradle/instrumentation.gradle"
  2. apply plugin: 'org.unbroken-dome.test-sets'
  3. muzzle {
  4. pass {
  5. group = "com.squareup.okhttp3"
  6. module = "okhttp"
  7. versions = "[3.0,)"
  8. assertInverse = true
  9. }
  10. }
  11. testSets {
  12. latestDepTest {
  13. dirName = 'test'
  14. }
  15. }
  16. /*
  17. Note: there is a bit of dependency exclusion magic goin on.
  18. We have to exclude all transitive dependencies on 'okhttp' because we would like to force
  19. specific version. We cannot use . Unfortunately we cannot just force version on
  20. a dependency because this doesn't work well with version ranges - it doesn't select latest.
  21. And we cannot use configurations to exclude this dependency from everywhere in one go
  22. because it looks like exclusions using configurations excludes dependency even if it explicit
  23. not transitive.
  24. */
  25. dependencies {
  26. compileOnly(group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.0.0')
  27. implementation project(':javaagent-tooling')
  28. testImplementation(project(':testing-common')) {
  29. exclude module: 'okhttp'
  30. }
  31. testImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.0.0'
  32. // 4.x.x-alpha has been released and it looks like there are lots of incompatible changes
  33. latestDepTestImplementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '[3.11.0, 4.0.0*)'
  34. }