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

muzzle {
  pass {
    group = 'io.vertx'
    module = 'vertx-rx-java2'
    versions = "[3.5.0,)"
  }
}

//The first Vert.x version that uses rx-java 2
ext.vertxVersion = '3.5.0'

dependencies {
  library group: 'io.vertx', name: 'vertx-web', version: vertxVersion
  library group: 'io.vertx', name: 'vertx-rx-java2', version: vertxVersion

  testInstrumentation project(':instrumentation:jdbc:javaagent')
  testInstrumentation project(':instrumentation:netty:netty-4.1:javaagent')
  testInstrumentation project(':instrumentation:vertx-web-3.0')

  testLibrary group: 'io.vertx', name: 'vertx-web-client', version: vertxVersion
  testLibrary group: 'io.vertx', name: 'vertx-jdbc-client', version: vertxVersion
  testLibrary group: 'io.vertx', name: 'vertx-circuit-breaker', version: vertxVersion
  testImplementation 'org.hsqldb:hsqldb:2.3.4'

  // Vert.x 4.0 is incompatible with our tests.
  latestDepTestLibrary group: 'io.vertx', name: 'vertx-web', version: '3.+'
  latestDepTestLibrary group: 'io.vertx', name: 'vertx-web-client', version: '3.+'
  latestDepTestLibrary group: 'io.vertx', name: 'vertx-jdbc-client', version: '3.+'
  latestDepTestLibrary group: 'io.vertx', name: 'vertx-circuit-breaker', version: '3.+'
  latestDepTestLibrary group: 'io.vertx', name: 'vertx-rx-java2', version: '3.+'
}
