mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-19 04:45:07 -04:00
Static fields dont do well in Gradle with configuration cache enabled. - Use buildParams extension in build scripts - Keep BuildParams.ci for now for easy serverless migration - Tweak testing doc
26 lines
739 B
Groovy
26 lines
739 B
Groovy
import org.elasticsearch.gradle.internal.info.BuildParams
|
|
import org.elasticsearch.gradle.util.GradleUtils
|
|
|
|
apply plugin: 'elasticsearch.internal-java-rest-test'
|
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
|
|
|
esplugin {
|
|
description 'Apm integration plugin'
|
|
classname 'org.elasticsearch.test.apmintegration.ApmIntegrationPlugin'
|
|
}
|
|
|
|
// let the javaRestTest see the classpath of main
|
|
GradleUtils.extendSourceSet(project, "main", "javaRestTest", tasks.named("javaRestTest"))
|
|
|
|
tasks.named("test").configure {
|
|
enabled = false
|
|
}
|
|
|
|
tasks.named('javaRestTest').configure {
|
|
it.onlyIf("snapshot build") { buildParams.isSnapshotBuild() }
|
|
}
|
|
|
|
dependencies {
|
|
clusterModules project(':modules:apm')
|
|
implementation project(':libs:logging')
|
|
}
|