build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
  3. * or more contributor license agreements. Licensed under the Elastic License
  4. * 2.0; you may not use this file except in compliance with the Elastic License
  5. * 2.0.
  6. */
  7. apply plugin: 'elasticsearch.base-internal-es-plugin'
  8. apply plugin: 'elasticsearch.internal-java-rest-test'
  9. esplugin {
  10. name = 'queryable-reserved-roles-test'
  11. description = 'A test plugin for testing that changes to reserved roles are made queryable'
  12. classname = 'org.elasticsearch.xpack.security.role.QueryableBuiltInRolesTestPlugin'
  13. extendedPlugins = ['x-pack-core', 'x-pack-security']
  14. }
  15. dependencies {
  16. javaRestTestImplementation(testArtifact(project(xpackModule('security'))))
  17. javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
  18. compileOnly project(':x-pack:plugin:core')
  19. compileOnly project(':x-pack:plugin:security')
  20. clusterPlugins project(':x-pack:plugin:security:qa:security-basic')
  21. }
  22. tasks.named('javaRestTest') {
  23. usesDefaultDistribution("to be triaged")
  24. }
  25. tasks.named("javadoc").configure { enabled = false }
  26. if (buildParams.inFipsJvm) {
  27. // This test cluster is using a BASIC license and FIPS 140 mode is not supported in BASIC
  28. tasks.named("javaRestTest").configure { enabled = false }
  29. }