2018-02-01 07:16:59 +08:00
|
|
|
/*
|
2021-02-03 05:41:39 +08:00
|
|
|
* 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.
|
2018-02-01 07:16:59 +08:00
|
|
|
*/
|
2020-05-15 09:56:59 +08:00
|
|
|
apply plugin: 'elasticsearch.publish'
|
2018-02-01 07:16:59 +08:00
|
|
|
|
|
|
|
dependencies {
|
2019-11-13 18:14:04 +08:00
|
|
|
// do not add non-test compile dependencies to secure-sm without a good reason to do so
|
2018-02-01 07:16:59 +08:00
|
|
|
|
2020-06-12 19:34:53 +08:00
|
|
|
testImplementation "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
|
|
|
|
testImplementation "junit:junit:${versions.junit}"
|
|
|
|
testImplementation "org.hamcrest:hamcrest:${versions.hamcrest}"
|
2019-11-13 18:14:04 +08:00
|
|
|
|
2020-06-12 19:34:53 +08:00
|
|
|
testImplementation(project(":test:framework")) {
|
2019-11-13 18:14:04 +08:00
|
|
|
exclude group: 'org.elasticsearch', module: 'elasticsearch-secure-sm'
|
|
|
|
}
|
2018-02-01 07:16:59 +08:00
|
|
|
}
|
|
|
|
|
2020-04-16 04:23:55 +08:00
|
|
|
tasks.named('forbiddenApisMain').configure {
|
2019-11-13 18:14:04 +08:00
|
|
|
replaceSignatureFiles 'jdk-signatures'
|
2018-02-01 07:16:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// JAR hell is part of core which we do not want to add as a dependency
|
2020-12-12 23:14:17 +08:00
|
|
|
tasks.named("jarHell").configure { enabled = false }
|
2018-02-01 07:16:59 +08:00
|
|
|
|
2021-01-04 19:32:19 +08:00
|
|
|
tasks.named("testingConventions").configure {
|
2019-11-13 18:14:04 +08:00
|
|
|
naming.clear()
|
|
|
|
naming {
|
|
|
|
Tests {
|
|
|
|
baseClass 'junit.framework.TestCase'
|
2019-01-08 19:39:03 +08:00
|
|
|
}
|
2019-11-13 18:14:04 +08:00
|
|
|
}
|
2019-01-08 19:39:03 +08:00
|
|
|
}
|