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

muzzle {
  pass {
    group = "javax.servlet"
    module = "servlet-api"
    versions = "[2.2, 3.0)"
    assertInverse = true
  }

  fail {
    group = "javax.servlet"
    module = 'javax.servlet-api'
    versions = "[3.0,)"
  }
}

dependencies {
  compileOnly group: 'javax.servlet', name: 'servlet-api', version: '2.2'
  api(project(':instrumentation-core:servlet-2.2'))

  testInstrumentation project(':instrumentation:servlet:servlet-common:javaagent')

  testImplementation(project(':testing-common')) {
    exclude group: 'org.eclipse.jetty', module: 'jetty-server'
  }
  testLibrary group: 'org.eclipse.jetty', name: 'jetty-server', version: '7.0.0.v20091005'
  testLibrary group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '7.0.0.v20091005'

  latestDepTestLibrary group: 'org.eclipse.jetty', name: 'jetty-server', version: '7.+'
  latestDepTestLibrary group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '7.+'
}
