34 lines
1.2 KiB
Groovy
34 lines
1.2 KiB
Groovy
/*
|
|
* 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: 'elasticsearch.yaml-rest-test'
|
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
|
|
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
|
|
|
esplugin {
|
|
description 'Placeholder plugin for geospatial features in ES. only registers geo_shape field mapper for now'
|
|
classname 'org.elasticsearch.geo.GeoPlugin'
|
|
}
|
|
|
|
restResources {
|
|
restApi {
|
|
include '_common', 'indices', 'index', 'search'
|
|
}
|
|
}
|
|
artifacts {
|
|
restTests(project.file('src/yamlRestTest/resources/rest-api-spec/test'))
|
|
}
|
|
tasks.named("test").configure { enabled = false }
|
|
|
|
if (BuildParams.inFipsJvm){
|
|
// The geo module is replaced by spatial in the default distribution and in FIPS 140 mode, we set the testclusters to
|
|
// use the default distribution, so there is no need to run these tests
|
|
tasks.named("yamlRestTest").configure{enabled = false }
|
|
tasks.named("yamlRestCompatTest").configure{enabled = false }
|
|
}
|