group = 'io.opentelemetry.javaagent'

apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

// FIXME: Improve test coverage.
minimumBranchCoverage = 0.0
minimumInstructionCoverage = 0.0

configurations {
  // classpath used by the instrumentation muzzle plugin
  instrumentationMuzzle {
    canBeConsumed = true
    canBeResolved = false
    extendsFrom implementation
  }
}

dependencies {
  api deps.opentelemetryApi
  api deps.opentelemetryApiMetrics
  compileOnly deps.opentelemetrySdk
  implementation deps.slf4j
  implementation group: 'org.slf4j', name: 'slf4j-simple', version: versions.slf4j
  // ^ Generally a bad idea for libraries, but we're shadowing.

  implementation project(':javaagent-api')
  implementation project(':instrumentation-api')

  testImplementation project(':testing-common')
  testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.6.0'
  testImplementation deps.assertj
}
