/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ plugins { id 'opensearch.build' apply false } allprojects { apply plugin: 'java' apply plugin: 'opensearch.build' repositories { mavenCentral() } dependencies { testImplementation "junit:junit:4.13.2" } ext.licenseFile = file("$buildDir/dummy/license") ext.noticeFile = file("$buildDir/dummy/notice") testingConventions.naming { // Reset default to no baseClass checks Tests { baseClasses = [] } IT { baseClasses = [] } } } project(':empty_test_task') { tasks.register("emptyTest", Test) } project(':all_classes_in_tasks') { test { include "**/Convention*" } } project(':not_implementing_base') { testingConventions.naming { Tests { baseClass 'org.opensearch.gradle.testkit.Unit' } IT { baseClass 'org.opensearch.gradle.testkit.Integration' } } test { include "**/*IT.class" include "**/*Tests.class" } } project(':valid_setup_no_base') { test { include "**/*IT.class" include "**/*Tests.class" } } project(':tests_in_main') { } project(':valid_setup_with_base') { test { include "**/*IT.class" include "**/*Tests.class" } testingConventions.naming { Tests { baseClass 'org.opensearch.gradle.testkit.Unit' } IT { baseClass 'org.opensearch.gradle.testkit.Integration' } } }