1616buildscript {
1717 repositories {
1818 mavenCentral()
19- maven {
20- name ' sonatype-snapshots'
21- url " https://oss.sonatype.org/content/repositories/snapshots/"
22- }
23- jcenter()
2419 }
2520 dependencies {
26- classpath " org.elasticsearch.gradle:build-tools:7.12.1"
27- classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
21+ classpath " org.elasticsearch.gradle:build-tools:7.15.0"
2822 }
2923}
3024
3125apply plugin : ' java'
3226apply plugin : ' elasticsearch.esplugin'
33- apply plugin : ' com.jfrog.bintray '
27+ apply plugin : ' elasticsearch.yaml-rest-test '
3428
3529repositories {
36- maven {
37- name ' bintray-babayotakun-russianmorphology'
38- url " https://dl.bintray.com/babayotakun/russianmorphology"
39- }
4030 flatDir {
4131 dirs ' libs'
4232 }
33+ mavenCentral()
4334}
4435
45- version = ' 7.12.1 '
36+ version = ' 7.15.0 '
4637
4738esplugin {
4839 description ' English and Russian Morphology for ElasticSearch.'
@@ -53,43 +44,19 @@ esplugin {
5344}
5445esplugin. version = version
5546
56- dependencies {
57- compile " org.apache.lucene.morphology:russian:1.5"
58- compile " org.apache.lucene.morphology:english:1.5"
59- compile " org.apache.lucene.morphology:morph:1.5"
47+ configurations {
48+ yamlRestTestRuntimeOnly. extendsFrom testRuntimeOnly
49+ restTestSpecs
6050}
6151
62- // publishing {
63- // publications {
64- // DefaultPublication(MavenPublication) {
65- // groupId 'org.elasticsearch'
66- // artifactId 'elasticsearch-analysis-morphology'
67- // from components.java
68- // artifact javadocJar
69- // artifact sourcesJar
70- // artifact bundlePlugin
71- // }
72- // }
73- // }
74-
75-
76- // Only needed if we publish to bintray
77- if (project. hasProperty(' bintrayUser' )) {
78-
79- bintray {
80- user = project. property(' bintrayUser' )
81- key = project. property(' bintrayApiKey' )
82- pkg {
83- repo = ' elasticsearch-plugins'
84- name = ' elasticsearch-analysis-morphology'
85- }
86- publications = [' DefaultPublication' ]
87- }
52+ dependencies {
53+ testRuntimeOnly ' org.apache.logging.log4j:log4j-core:2.11.1'
54+ yamlRestTestRuntimeOnly ' org.apache.logging.log4j:log4j-core:2.11.1'
55+ implementation " org.apache.lucene.morphology:russian:1.5"
56+ implementation " org.apache.lucene.morphology:english:1.5"
57+ implementation " org.apache.lucene.morphology:morph:1.5"
8858}
8959
90- // TODO: temporary workaround until it's fixed in elasticsearch
91- validateNebulaPom. enabled = false
92-
9360project. licenseFile = project. rootProject. file(' LICENSE.txt' )
9461project. noticeFile = project. rootProject. file(' NOTICE.txt' )
9562
0 commit comments