/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.
 */

plugins {
    id 'distribution'
    alias(libs.plugins.docker)
}

apply from: "$rootDir/buildscripts/java-core.gradle"
apply from: "$rootDir/buildscripts/publishing.gradle"
apply from: "$rootDir/buildscripts/java-junit5.gradle"

description = 'migration-tools-e2e-ai2-runner'

dependencies {
    implementation project(":migration-tools-e2e-core")
    implementation project(":migration-tools-e2e-implementations")

    implementation runtimeApacheIgnite2.ignite2.core

    implementation libs.junit5.api
    implementation libs.junit5.params
    implementation libs.assertj.core

    runtimeOnly runtimeApacheIgnite2.ignite2.spring
    runtimeOnly libs.junit5.impl
    runtimeOnly libs.junit5.platform.console
}

docker {
    name 'ai3-migration-tools/e2e-tests:latest'
    dockerfile file('docker/Dockerfile')
    files configurations.runtimeClasspath, tasks.jar.outputs
    copySpec.into("libs")
}
