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

muzzle {
  pass {
    group = "org.apache.struts"
    module = "struts2-core"
    versions = "[2.3.1,)"
  }
}

dependencies {
  library group: 'org.apache.struts', name: 'struts2-core', version: '2.3.1'

  // There was no 2.4 version at all.
  // In version 2.5 Struts Servlet Filter entry point was relocated.
  // This Servlet Filter is relevant only in setting up the test app and it is not used in
  // instrumentation. So fixing Struts library version for the test.
  latestDepTestLibrary group: 'org.apache.struts', name: 'struts2-core', version: '2.3.+'

  testImplementation(project(':testing-common'))
  testImplementation group: 'org.eclipse.jetty', name: 'jetty-server', version: '8.0.0.v20110901'
  testImplementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '8.0.0.v20110901'
  testRuntimeOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
  testRuntimeOnly group: 'javax.servlet', name: 'jsp-api', version: '2.0'

  testInstrumentation project(":instrumentation:servlet:servlet-3.0:javaagent")
  testInstrumentation project(':instrumentation:servlet:servlet-common:javaagent')
  testInstrumentation project(':instrumentation:jetty-8.0:javaagent')
}

