I cloned the project and issued "gradle build". It errored out with the following error:
_**FAILURE: Build failed with an exception.
What went wrong:
Could not compile build file '/Users/bbordol/GitRepos/elasticsearch-mapper-attachments/build.gradle'.
startup failed:
build file '/Users/bbordol/GitRepos/elasticsearch-mapper-attachments/build.gradle': 20: unable to resolve class org.elasticsearch.gradle.ElasticsearchProperties
@ line 20, column 1.
import org.elasticsearch.gradle.ElasticsearchProperties
^**_
The import was only used at two places so I hard coded the values to '2.3.1' and '5.5.0' for lucense version. But that didnt work as they lead to build errors further down indicating that the versions are not the right ones.
Furthermore, I get the following error once I replace the properties:
A problem occurred evaluating root project 'elasticsearch-mapper-attachments'.
No signature of method: static org.elasticsearch.gradle.precommit.DependencyLicensesTask.configure() is applicable for argument types: (org.gradle.api.internal.project.DefaultProject_Decorated, build_61932qhn0ehil3ncu1dr69vdf$_run_closure5) values: [root project 'elasticsearch-mapper-attachments', build_61932qhn0ehil3ncu1dr69vdf$_run_closure5@6dcf7b6a]
Possible solutions: configure(groovy.lang.Closure)
I commented out the relevant call to .config to see if it would proceed successfully.
It then hit a bunch of errors about missing imports. I guess the some dependency versions are not matching the requirement.
How to build the project?
I am using:
Gradle Version : 2.13
OS Info : Mac OS X 10.10.4 (x86_64)
JDK Version : Oracle Corporation 1.8.0_51 [Java HotSpot(TM) 64-Bit Server VM 25.51-b03]
Hi,
I cloned the project and issued "gradle build". It errored out with the following error:
_**FAILURE: Build failed with an exception.
The import was only used at two places so I hard coded the values to '2.3.1' and '5.5.0' for lucense version. But that didnt work as they lead to build errors further down indicating that the versions are not the right ones.
Furthermore, I get the following error once I replace the properties: A problem occurred evaluating root project 'elasticsearch-mapper-attachments'.
I commented out the relevant call to .config to see if it would proceed successfully. It then hit a bunch of errors about missing imports. I guess the some dependency versions are not matching the requirement.
How to build the project? I am using: Gradle Version : 2.13 OS Info : Mac OS X 10.10.4 (x86_64) JDK Version : Oracle Corporation 1.8.0_51 [Java HotSpot(TM) 64-Bit Server VM 25.51-b03]
Thanks, Bijoy
PS: I am following up to the issue https://github.com/elastic/elasticsearch-mapper-attachments/issues/213. Trying to experiment and see if Tika can be used to extract "Subject" and "page count"