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
21 lines
639 B
Groovy
21 lines
639 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 'Die with dignity plugin'
|
|
classname 'org.elasticsearch.test.diewithdignity.DieWithDignityPlugin'
|
|
}
|
|
|
|
// 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() }
|
|
}
|