Elasticsearch dependency should be provided and not compile

Please change the Elasticsearch dependency to provided (and maybe testCompile) instead of compile and runtime.

Why? If you include the plugin in embedded Elasticsearch, and you exclude anything from the Elasticsearch dependency, it is undone by this dependency also including Elasticsearch. Therefore you have to tune both, when really this plugin only needs it as provided (since it runs with Elasticsearch or in Elasticsearch but never on its own).

Related to #48.
This commit is contained in:
Kenta Suzuki 2014-03-17 12:59:18 +01:00 committed by David Pilato
parent c117c119eb
commit 1dbd23968c
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@
<version>${elasticsearch.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>${lucene.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>