logstash/tools/benchmark-cli/build.gradle
João Duarte 1d1fa7a471
update commons-io commons-compress jrjackson databind (#15125)
* update commons-io to 2.13.0 and commons-compress to 1.23.0

* update databind and jackson
2023-06-29 09:02:32 +02:00

86 lines
2.9 KiB
Groovy

/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. 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.
*/
import org.yaml.snakeyaml.Yaml
// fetch version from Logstash's main versions.yml file
def versionMap = (Map) (new Yaml()).load(new File("$projectDir/../../versions.yml").text)
description = """Logstash End to End Benchmarking Utility"""
version = versionMap['logstash-core']
String jacksonVersion = versionMap['jackson']
String jacksonDatabindVersion = versionMap['jackson-databind']
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.yaml:snakeyaml:${snakeYamlVersion}"
classpath "gradle.plugin.com.github.jengelman.gradle.plugins:shadow:${shadowGradlePluginVersion}"
}
}
ext {
jmh = '1.23'
elasticsearch = '5.6.16'
}
dependencies {
implementation 'net.sf.jopt-simple:jopt-simple:5.0.3'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12'
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.23.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.14'
implementation group: 'commons-io', name: 'commons-io', version: '2.13.0'
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
api "com.fasterxml.jackson.core:jackson-databind:${jacksonDatabindVersion}"
implementation group: 'org.elasticsearch.client', name: 'elasticsearch-rest-client', version: elasticsearch
implementation "org.openjdk.jmh:jmh-core:$jmh"
testImplementation group: 'com.github.tomakehurst', name: 'wiremock-standalone', version: '2.27.0'
testImplementation "junit:junit:4.12"
}
javadoc {
enabled = false
}
test {
// We need to force IPV4 usage to make WireMock tests portable between *nix and Windows.
// For details see: https://github.com/elastic/logstash/pull/8372
jvmArgs '-Djava.net.preferIPv4Stack=true'
exclude '**/org/logstash/benchmark/cli/MainTest*'
exclude '**/org/logstash/benchmark/cli/MainEsStorageTest*'
}
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
archiveBaseName = 'benchmark-cli'
archiveClassifier = null
archiveVersion = ''
}
assemble.dependsOn shadowJar