mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
This updates the gradle wrapper to 8.12 We addressed deprecation warnings due to the update that includes: - Fix change in TestOutputEvent api - Fix deprecation in groovy syntax - Use latest ospackage plugin containing our fix - Remove project usages at execution time - Fix deprecated project references in repository-old-versions
29 lines
1.1 KiB
Groovy
29 lines
1.1 KiB
Groovy
apply plugin: 'elasticsearch.stable-esplugin'
|
|
apply plugin: 'elasticsearch.yaml-rest-test'
|
|
|
|
esplugin {
|
|
name = 'stable-analysis-plugin'
|
|
description = 'An example analysis plugin using stable plugin api'
|
|
}
|
|
//TODO write module-info
|
|
|
|
dependencies {
|
|
|
|
//TODO transitive dependency off and plugin-api dependency?
|
|
compileOnly "org.elasticsearch.plugin:elasticsearch-plugin-api:${pluginApiVersion}"
|
|
compileOnly "org.elasticsearch.plugin:elasticsearch-plugin-analysis-api:${pluginApiVersion}"
|
|
compileOnly "org.apache.lucene:lucene-analysis-common:${luceneVersion}"
|
|
|
|
//TODO for testing this also have to be declared
|
|
testImplementation "org.elasticsearch.plugin:elasticsearch-plugin-api:${pluginApiVersion}"
|
|
testImplementation "org.elasticsearch.plugin:elasticsearch-plugin-analysis-api:${pluginApiVersion}"
|
|
testImplementation "org.apache.lucene:lucene-analysis-common:${luceneVersion}"
|
|
|
|
testImplementation ('junit:junit:4.13.2'){
|
|
exclude group: 'org.hamcrest'
|
|
}
|
|
testImplementation 'org.mockito:mockito-core:4.4.0'
|
|
testImplementation 'org.hamcrest:hamcrest:2.2'
|
|
|
|
}
|
|
|