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.
|
|
|
|
*/
|
|
|
|
|
2016-07-26 05:01:22 -04: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.
|
|
|
|
*/
|
|
|
|
|
2021-03-05 00:42:06 -05:00
|
|
|
apply plugin: 'opensearch.build'
|
2016-08-02 08:17:51 -04:00
|
|
|
apply plugin: 'application'
|
2016-07-26 05:01:22 -04:00
|
|
|
|
2021-03-05 00:42:06 -05:00
|
|
|
group = 'org.opensearch.client'
|
2016-07-26 05:01:22 -04:00
|
|
|
|
2017-06-16 17:16:03 -04:00
|
|
|
// Not published so no need to assemble
|
2018-09-04 00:32:14 -04:00
|
|
|
assemble.enabled = true
|
2017-06-16 11:46:34 -04:00
|
|
|
|
2016-08-02 08:17:51 -04:00
|
|
|
archivesBaseName = 'client-benchmarks'
|
2021-03-05 00:42:06 -05:00
|
|
|
mainClassName = 'org.opensearch.client.benchmark.BenchmarkMain'
|
2016-08-02 08:17:51 -04:00
|
|
|
|
2016-07-26 05:01:22 -04:00
|
|
|
// never try to invoke tests on the benchmark project - there aren't any
|
2019-04-09 14:52:50 -04:00
|
|
|
test.enabled = false
|
2016-07-26 05:01:22 -04:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
api 'org.apache.commons:commons-math3:3.2'
|
2016-07-26 05:01:22 -04:00
|
|
|
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(":client:rest")
|
2021-03-05 00:42:06 -05:00
|
|
|
// bottleneck should be the client, not OpenSearch
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(path: ':client:client-benchmark-noop-api-plugin')
|
|
|
|
api project(":server")
|
2016-07-26 05:01:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// No licenses for our benchmark deps (we don't ship benchmarks)
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure { it.enabled = false }
|
2017-12-26 04:51:47 -05:00
|
|
|
dependenciesInfo.enabled = false
|