2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2015-11-02 12:40:47 -05:00
|
|
|
/*
|
|
|
|
* Licensed to Elasticsearch under one or more contributor
|
|
|
|
* license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright
|
|
|
|
* ownership. Elasticsearch 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.
|
|
|
|
*/
|
|
|
|
|
2018-04-30 19:35:26 -04:00
|
|
|
plugins {
|
2021-03-18 19:14:19 -04:00
|
|
|
id 'opensearch.distro-test'
|
2018-04-30 19:35:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
api "junit:junit:${versions.junit}"
|
|
|
|
api "org.hamcrest:hamcrest:${versions.hamcrest}"
|
|
|
|
api "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
|
2018-04-30 19:35:26 -04:00
|
|
|
|
2020-06-30 09:57:41 -04:00
|
|
|
api "org.apache.httpcomponents:httpcore:${versions.httpcore}"
|
|
|
|
api "org.apache.httpcomponents:httpclient:${versions.httpclient}"
|
|
|
|
api "org.apache.httpcomponents:fluent-hc:${versions.httpclient}"
|
|
|
|
api "org.apache.logging.log4j:log4j-api:${versions.log4j}"
|
|
|
|
api "org.apache.logging.log4j:log4j-core:${versions.log4j}"
|
|
|
|
api "org.apache.logging.log4j:log4j-jcl:${versions.log4j}"
|
|
|
|
api "commons-codec:commons-codec:${versions.commonscodec}"
|
|
|
|
api "commons-logging:commons-logging:${versions.commonslogging}"
|
2018-07-10 11:21:20 -04:00
|
|
|
|
2021-03-18 19:14:19 -04:00
|
|
|
api project(':libs:opensearch-core')
|
2019-12-04 03:57:58 -05:00
|
|
|
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
|
|
|
|
testImplementation "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
|
|
|
testImplementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}"
|
2018-04-30 19:35:26 -04:00
|
|
|
}
|
2015-11-05 15:47:54 -05:00
|
|
|
|
2020-04-15 16:23:55 -04:00
|
|
|
tasks.named('forbiddenApisTest').configure {
|
2018-08-22 02:05:22 -04:00
|
|
|
replaceSignatureFiles 'jdk-signatures'
|
2018-04-30 19:35:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// we don't have additional tests for the tests themselves
|
2019-04-09 14:52:50 -04:00
|
|
|
tasks.test.enabled = false
|
2019-01-24 10:30:50 -05:00
|
|
|
// Tests are destructive and meant to run in a VM, they don't adhere to general conventions
|
|
|
|
testingConventions.enabled = false
|
2018-04-30 19:35:26 -04:00
|
|
|
|
|
|
|
// this project doesn't get published
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure { it.enabled = false }
|
2018-04-30 19:35:26 -04:00
|
|
|
tasks.dependenciesInfo.enabled = false
|
2018-07-10 11:21:20 -04:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
tasks.thirdPartyAudit.ignoreMissingClasses()
|
2019-08-12 19:01:53 -04:00
|
|
|
|
2019-08-13 11:19:18 -04:00
|
|
|
tasks.register('destructivePackagingTest') {
|
2020-08-05 17:58:31 -04:00
|
|
|
dependsOn 'destructiveDistroTest'
|
2019-08-13 11:19:18 -04:00
|
|
|
}
|
2019-08-12 19:01:53 -04:00
|
|
|
|
|
|
|
subprojects { Project platformProject ->
|
2019-10-24 08:14:11 -04:00
|
|
|
tasks.register('packagingTest') {
|
2020-08-05 17:58:31 -04:00
|
|
|
dependsOn 'distroTest'
|
2019-08-12 19:01:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
vagrant {
|
|
|
|
hostEnv 'VAGRANT_PROJECT_DIR', platformProject.projectDir.absolutePath
|
|
|
|
}
|
|
|
|
}
|