https://github.com/elastic/elasticsearch
Raw File
Tip revision: 7cbddc66c3497bece6bae06e26ab56888e9282ca authored by gmarouli on 12 January 2022, 15:01:08 UTC
Mute flaky test
Tip revision: 7cbddc6
build.gradle
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */
apply plugin: 'base'

configurations {
  apis
  compatApis
  freeTests
  freeCompatTests
  platinumTests
  platinumCompatTests
}

dependencies {
  apis project(path: ':rest-api-spec', configuration: 'restSpecs')
  freeTests project(path: ':rest-api-spec', configuration: 'restTests')
  compatApis project(path: ':rest-api-spec', configuration: 'restCompatSpecs')
  compatApis project(path: ':x-pack:plugin', configuration: 'restCompatSpecs')
  freeCompatTests project(path: ':rest-api-spec', configuration: 'restCompatTests')
  platinumTests project(path: ':x-pack:plugin', configuration: 'restXpackTests')
  platinumTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restXpackTests')
  platinumCompatTests project(path: ':x-pack:plugin', configuration: 'restCompatTests')
  platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
}

def restResourcesZip = tasks.register('restResourcesZip', Zip) {
  description = 'Build archive containing all REST API specifications and YAML tests'

  destinationDirectory = layout.buildDirectory.dir('distributions')
  from(configurations.apis) {
    into 'rest-api-spec/api'
  }
  from(configurations.compatApis) {
    into 'rest-api-spec/compatApi'
    duplicatesStrategy = 'exclude'
  }
  from(configurations.freeTests) {
    into 'rest-api-spec/test/free'
  }
  from(configurations.freeCompatTests) {
    into 'rest-api-spec/compatTest/free'
  }
  from(configurations.platinumTests) {
    into 'rest-api-spec/test/platinum'
  }
  from(configurations.platinumCompatTests) {
    into 'rest-api-spec/compatTest/platinum'
  }
}

artifacts {
  archives restResourcesZip
}
back to top