mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 06:08:19 -04:00
* Update gradle version to 6.3 Gradle versions prior to 6.3 cannot run under JDK14. This commit upgrades the version of Gradle to 6.3, and removes all deprecation warnings that can currently be removed. Changes include: * Increase gradle memory to 2g * Increase gradle memory in the license check job to 2g * Replace use of `testCompile` * Replace `runtime` with `runtimeOnly` * Remove`compile` depedencies from gradle files * Replace deprecated archive methods * Fix dependencies report build * Make jruby dependencies 'api', fix archiveVersion * Set `duplicatesStrategy` for all tasks of type Copy * Use `configureEach` for global 'withType' calls ** Use the recommended Tasks API calls (https://blog.gradle.org/preview-avoiding-task-configuration-time) * Run `./gradlew wrapper` earlier to improve caching * Use copy with chown for resources that need to be run during `./gradlew wrapper`
43 lines
1.1 KiB
Groovy
43 lines
1.1 KiB
Groovy
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
description = """Logstash X-Pack"""
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation project(':logstash-core')
|
|
testImplementation 'org.assertj:assertj-core:3.8.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
}
|
|
|
|
test {
|
|
exclude '/**'
|
|
}
|
|
|
|
task rubyTests(type: Test) {
|
|
inputs.files fileTree("${projectDir}/spec")
|
|
inputs.files fileTree("${projectDir}/lib")
|
|
inputs.files fileTree("${projectDir}/modules")
|
|
systemProperty 'logstash.core.root.dir', projectDir.absolutePath
|
|
include '/org/logstash/xpack/test/RSpecTests.class'
|
|
}
|
|
|
|
task rubyIntegrationTests(type: Test) {
|
|
inputs.files fileTree("${projectDir}/qa")
|
|
inputs.files fileTree("${projectDir}/lib")
|
|
inputs.files fileTree("${projectDir}/modules")
|
|
systemProperty 'logstash.core.root.dir', projectDir.absolutePath
|
|
include '/org/logstash/xpack/test/RSpecIntegrationTests.class'
|
|
}
|