/*
 * Copyright © 2018-2021 Apple Inc. and the ServiceTalk project authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"

dependencies {
  api project(":servicetalk-concurrent")
  api project(":servicetalk-context-api")

  implementation project(":servicetalk-annotations")
  implementation project(":servicetalk-concurrent-internal")
  implementation project(":servicetalk-utils-internal")
  implementation "org.slf4j:slf4j-api:$slf4jVersion"

  testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
  testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
  testImplementation project(":servicetalk-concurrent-test-internal")
  testImplementation project(":servicetalk-test-resources")
  testImplementation "org.junit.jupiter:junit-jupiter-api"
  testImplementation "org.junit.jupiter:junit-jupiter-params"
  testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
  testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"

  testFixturesApi platform("org.junit:junit-bom:$junit5Version")
  testFixturesApi project(":servicetalk-concurrent")
  testFixturesApi project(":servicetalk-concurrent-internal")
  testFixturesApi "org.junit.jupiter:junit-jupiter-api"
  testFixturesApi "org.hamcrest:hamcrest:$hamcrestVersion"

  testFixturesImplementation project(":servicetalk-utils-internal")
  testFixturesImplementation project(":servicetalk-concurrent-test-internal")
  testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
  testFixturesImplementation "org.slf4j:slf4j-api:$slf4jVersion"
}
