https://github.com/elastic/elasticsearch
Raw File
Tip revision: 5d21bea28db1e89ecc1f66311ebdec9dc3aa7d64 authored by James Rodewig on 01 July 2021, 19:02:05 UTC
[DOCS] Move EQL APIs to separate page (#74846) (#74861)
Tip revision: 5d21bea
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
  freeTests
  platinumTests
}

dependencies {
  apis project(path: ':rest-api-spec', configuration: 'restSpecs')
  freeTests project(path: ':rest-api-spec', configuration: 'restTests')
  platinumTests project(path: ':x-pack:plugin', configuration: 'restXpackTests')
}

tasks.register('restResourcesZip', Zip).configure {
  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.freeTests) {
    into 'rest-api-spec/test/free'
  }
  from(configurations.platinumTests) {
    into 'rest-api-spec/test/platinum'
  }
}

tasks.named("assemble").configure { dependsOn 'restResourcesZip' }
back to top