build.gradle 877 B

1234567891011121314151617181920
  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", the "GNU Affero General Public License v3.0 only", and the "Server Side
  5. * Public License v 1"; you may not use this file except in compliance with, at
  6. * your election, the "Elastic License 2.0", the "GNU Affero General Public
  7. * License v3.0 only", or the "Server Side Public License, v 1".
  8. */
  9. import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask
  10. apply plugin: 'elasticsearch.internal-java-rest-test'
  11. apply plugin: 'elasticsearch.bwc-test'
  12. buildParams.bwcVersions.withIndexCompatible { bwcVersion, baseName ->
  13. tasks.register(bwcTaskName(bwcVersion), StandaloneRestIntegTestTask) {
  14. usesBwcDistribution(bwcVersion)
  15. systemProperty 'tests.cluster_version', bwcVersion
  16. }
  17. }