//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

sourceSets {
    main {
        java {
            srcDirs "$rootProject.projectDir/test/plugins"
        }
    }
}

dependencies {
    implementation localDependency('ice-compat')
}

jar {
    if (GradleVersion.current() >= GradleVersion.version('8.0')) {
        archiveFileName = "IceTestPlugins.jar"
        destinationDirectory = new File("$rootProject.projectDir/lib/")
    } else {
        archiveName = "IceTestPlugins.jar"
        destinationDir = new File("$rootProject.projectDir/lib/")
    }
}

clean {
    delete("$rootProject.projectDir/lib/IceTestPlugins.jar")
}
