apply from: "$rootDir/gradle/instrumentation.gradle"

muzzle {
  pass {
    group = 'com.couchbase.client'
    module = 'java-client'
    versions = "[2.6.0,3)"
    // Version 2.7.5 and 2.7.8 were not released properly and muzzle cannot test against it causing failure.
    skipVersions += ['2.7.5', '2.7.8']
    assertInverse = true
  }
  fail {
    group = 'com.couchbase.client'
    module = 'couchbase-client'
    versions = "(,)"
  }
}

dependencies {
  implementation project(':instrumentation:rxjava-1.0:library')

  library group: 'com.couchbase.client', name: 'java-client', version: '2.6.0'

  testInstrumentation project(':instrumentation:couchbase:couchbase-2.0:javaagent')
  testImplementation project(':instrumentation:couchbase:couchbase-testing')

  testLibrary group: 'org.springframework.data', name: 'spring-data-couchbase', version: '3.1.0.RELEASE'
  testLibrary group: 'com.couchbase.client', name: 'encryption', version: '1.0.0'

  latestDepTestLibrary group: 'org.springframework.data', name: 'spring-data-couchbase', version: '3.1+'
  latestDepTestLibrary group: 'com.couchbase.client', name: 'java-client', version: '2.+'
}
