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

muzzle {
  pass {
    coreJdk()
  }
}

dependencies {
  // jdbc unit testing
  testLibrary group: 'com.h2database', name: 'h2', version: '1.3.169'
  // first version jdk 1.6 compatible
  testLibrary group: 'org.apache.derby', name: 'derby', version: '10.6.1.0'
  testLibrary group: 'org.hsqldb', name: 'hsqldb', version: '2.0.0'

  testLibrary group: 'org.apache.tomcat', name: 'tomcat-jdbc', version: '7.0.19'
  // tomcat needs this to run
  testLibrary group: 'org.apache.tomcat', name: 'tomcat-juli', version: '7.0.19'
  testLibrary group: 'com.zaxxer', name: 'HikariCP', version: '2.4.0'
  testLibrary group: 'com.mchange', name: 'c3p0', version: '0.9.5'

  latestDepTestLibrary group: 'org.apache.derby', name: 'derby', version: '10.14.+'
}

tasks.withType(Test) {
  jvmArgs "-Dotel.instrumentation.jdbc-datasource.enabled=true"
}
