Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 061b07f

Browse files
committed
Upgrading build to ES 7.8.1
1 parent 6639d0c commit 061b07f

File tree

7 files changed

+30
-11
lines changed

7 files changed

+30
-11
lines changed

build.gradle

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
// This plugin's version (typically must match that of ES).
3-
version = '7.7.1'
3+
version = '7.8.1'
44
group = 'org.carrot2'
55

66
buildscript {
77
ext {
8-
version_es = '7.7.1'
8+
version_es = '7.8.1'
99
version_c2 = 'org.carrot2:carrot2-core:4.0.3'
1010
}
1111

@@ -22,7 +22,6 @@ buildscript {
2222
apply plugin: 'java-library'
2323
apply plugin: 'idea'
2424
apply plugin: 'elasticsearch.esplugin'
25-
apply plugin: 'nebula.maven-base-publish'
2625

2726
repositories {
2827
mavenLocal()
@@ -49,22 +48,38 @@ configurations {
4948
// esplugin forces transitive:false on all dependencies
5049
// so list all transitive dependencies individually
5150
dependencies {
52-
c2resources(version_c2) {
51+
c2resources(version_c2, {
5352
transitive false
54-
}
55-
compile version_c2
53+
})
54+
55+
compile(version_c2, {
56+
exclude group: "com.carrotsearch", module: "hppc"
57+
exclude group: "org.apache.logging.log4j"
58+
exclude group: "org.apache.lucene"
59+
exclude group: "com.fasterxml.jackson.core"
60+
exclude group: "org.apache.httpcomponents"
61+
exclude group: "commons-logging"
62+
exclude group: "junit"
63+
exclude group: "com.carrotsearch.randomizedtesting"
64+
})
5665

5766
testCompile "com.fasterxml.jackson.core:jackson-core:2.10.4"
5867
testCompile "com.fasterxml.jackson.core:jackson-annotations:2.10.4"
5968
testCompile "com.fasterxml.jackson.core:jackson-databind:2.10.4"
6069

61-
testCompile "org.assertj:assertj-core:3.12.0"
70+
testCompile "org.assertj:assertj-core:3.13.2"
6271
testCompile "org.elasticsearch.client:transport:" + version_es
6372

6473
testCompile "org.apache.httpcomponents:httpclient:${versions.httpclient}"
6574
testCompile "org.apache.httpcomponents:httpcore:${versions.httpcore}"
6675
}
6776

77+
configurations.all { config ->
78+
resolutionStrategy {
79+
force "commons-logging:commons-logging:1.2"
80+
}
81+
}
82+
6883
// Set target compatibility
6984
sourceCompatibility = 11
7085
targetCompatibility = 11
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/org/carrot2/elasticsearch/ClusteringPlugin.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.elasticsearch.plugins.ActionPlugin;
2222
import org.elasticsearch.plugins.ExtensiblePlugin;
2323
import org.elasticsearch.plugins.Plugin;
24+
import org.elasticsearch.repositories.RepositoriesService;
2425
import org.elasticsearch.rest.RestController;
2526
import org.elasticsearch.rest.RestHandler;
2627
import org.elasticsearch.script.ScriptService;
@@ -92,11 +93,14 @@ public List<RestHandler> getRestHandlers(Settings settings, RestController restC
9293

9394
@Override
9495
public Collection<Object> createComponents(Client client, ClusterService clusterService,
95-
ThreadPool threadPool, ResourceWatcherService resourceWatcherService,
96+
ThreadPool threadPool,
97+
ResourceWatcherService resourceWatcherService,
9698
ScriptService scriptService, NamedXContentRegistry xContentRegistry,
97-
Environment environment, NodeEnvironment nodeEnvironment,
99+
Environment environment,
100+
NodeEnvironment nodeEnvironment,
98101
NamedWriteableRegistry namedWriteableRegistry,
99-
IndexNameExpressionResolver indexNameExpressionResolver) {
102+
IndexNameExpressionResolver indexNameExpressionResolver,
103+
Supplier<RepositoriesService> repositoriesServiceSupplier) {
100104
List<Object> components = new ArrayList<>();
101105
if (pluginEnabled && !transportClient) {
102106
components.add(new ClusteringContext(environment,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)