import org.gradle.api.services.internal.BuildServiceProvider
import org.gradle.api.services.internal.BuildServiceRegistryInternal

/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the "Elastic License
 * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
 * Public License v 1"; you may not use this file except in compliance with, at
 * your election, the "Elastic License 2.0", the "GNU Affero General Public
 * License v3.0 only", or the "Server Side Public License, v 1".
 */
apply plugin: 'elasticsearch.java'
apply plugin: 'elasticsearch.cache-test-fixtures'
apply plugin: 'elasticsearch.deploy-test-fixtures'

dockerFixtures {
  krb5dc {
    dockerContext = projectDir
    version = "1.1"
    baseImages = ["alpine:3.21.0"]
  }
}

configurations {
  all {
    exclude group: 'org.hamcrest', module: 'hamcrest-core'
  }
}

dependencies {
  testImplementation project(':test:framework')
  api "junit:junit:${versions.junit}"
  api project(':test:fixtures:testcontainer-utils')
  api("org.testcontainers:testcontainers:${versions.testcontainer}") {
    transitive = false
  }
  implementation("com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"){
    transitive = false
  }
  implementation "org.slf4j:slf4j-api:${versions.slf4j}"
 // implementation "com.github.docker-java:docker-java-api:${versions.dockerJava}"
  implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"

  // ensure we have proper logging during when used in tests
  runtimeOnly "org.slf4j:slf4j-simple:${versions.slf4j}"
  runtimeOnly "org.hamcrest:hamcrest:${versions.hamcrest}"
}
