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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.build'
|
2016-08-02 08:17:51 -04:00
|
|
|
apply plugin: 'application'
|
2016-07-26 05:01:22 -04:00
|
|
|
|
|
|
|
group = 'org.elasticsearch.client'
|
|
|
|
|
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'
|
|
|
|
mainClassName = 'org.elasticsearch.client.benchmark.BenchmarkMain'
|
|
|
|
|
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 {
|
|
|
|
compile 'org.apache.commons:commons-math3:3.2'
|
|
|
|
|
2017-07-13 03:44:25 -04:00
|
|
|
compile("org.elasticsearch.client:elasticsearch-rest-client:${version}")
|
2016-08-26 03:05:47 -04:00
|
|
|
// bottleneck should be the client, not Elasticsearch
|
|
|
|
compile project(path: ':client:client-benchmark-noop-api-plugin')
|
2016-07-26 05:01:22 -04:00
|
|
|
// for transport client
|
|
|
|
compile("org.elasticsearch:elasticsearch:${version}")
|
|
|
|
compile("org.elasticsearch.client:transport:${version}")
|
|
|
|
compile project(path: ':modules:transport-netty4', configuration: 'runtime')
|
|
|
|
compile project(path: ':modules:reindex', configuration: 'runtime')
|
|
|
|
compile project(path: ':modules:lang-mustache', configuration: 'runtime')
|
|
|
|
compile project(path: ':modules:percolator', configuration: 'runtime')
|
|
|
|
}
|
|
|
|
|
|
|
|
// No licenses for our benchmark deps (we don't ship benchmarks)
|
|
|
|
dependencyLicenses.enabled = false
|
2017-12-26 04:51:47 -05:00
|
|
|
dependenciesInfo.enabled = false
|