build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. apply plugin: 'elasticsearch.internal-es-plugin'
  2. apply plugin: 'elasticsearch.internal-java-rest-test'
  3. esplugin {
  4. name 'x-pack-stack'
  5. description 'Elasticsearch Expanded Pack Plugin - Stack'
  6. classname 'org.elasticsearch.xpack.stack.StackPlugin'
  7. extendedPlugins = ['x-pack-core']
  8. hasNativeController false
  9. requiresKeystore true
  10. }
  11. base {
  12. archivesName = 'x-pack-stack'
  13. }
  14. dependencies {
  15. compileOnly project(path: xpackModule('core'))
  16. testImplementation project(':modules:data-streams')
  17. javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
  18. javaRestTestImplementation project(path: ':x-pack:plugin:stack')
  19. clusterModules project(':modules:mapper-extras')
  20. clusterModules project(xpackModule('wildcard'))
  21. }
  22. // These tests are only invoked direclty as part of a dedicated build job
  23. tasks.named('javaRestTest').configure {task ->
  24. onlyIf("E2E test task must be invoked directly") {
  25. gradle.startParameter.getTaskNames().contains(task.path) ||
  26. (gradle.startParameter.getTaskNames().contains(task.name) && gradle.startParameter.currentDir == project.projectDir)
  27. }
  28. }
  29. addQaCheckDependencies(project)