Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Compile from source #106

Open
GummyDonut opened this issue Jun 7, 2016 · 2 comments
Open

Question: Compile from source #106

GummyDonut opened this issue Jun 7, 2016 · 2 comments

Comments

@GummyDonut
Copy link

I know this may not be the right place to ask this. However, I wish to ask, how do you compile knapsack from source? I would like to make a small modification and try to test it.
Many of the guides online are out of date : https://www.elastic.co/blog/found-writing-a-plugin
and thus I was wondering if you guys could show me, or at least direct me in the correct direction.

Thanks for taking the time to read this.
Regards

@jprante
Copy link
Owner

jprante commented Jun 8, 2016

My plugins are developed with Gradle, which is not usual at the moment.

Simple method (without IDE)

  • Install Git, Java 8, Gradle
  • Check out source from github
  • Execute gradle clean pluginZip
  • Copy build/distributions/*.zip to Elasticsearch plugin folder & unzip (or use plugin tool)

Complex method (with IDE)

  • Install IntelliJ IDEA (Community Edition)
  • Ensure Java, Git, and Gradle IDE support is installed (this is by default)
  • Check out source from Github
  • Import into IntelliJ by File > Open
  • Open View > Tool windows > Gradle
  • Execute task clean
  • Execute task pluginZip
  • Copy build/distributions/*.zip to Elasticsearch plugin folder & unzip (or use plugin tool)

If you make changes where you think others may like it, pull requests are always welcome!

@GummyDonut
Copy link
Author

Thanks I will start this as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants