You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add plugin development notes in a readme. (#209) (#219)
* Add plugin development notes in a readme.
* Update README.md
Co-authored-by: Cas Donoghue <[email protected]>
* Update README.md
Co-authored-by: Cas Donoghue <[email protected]>
---------
Co-authored-by: Cas Donoghue <[email protected]>
(cherry picked from commit f48b08b)
Co-authored-by: Mashhur <[email protected]>
- Set the Logstash source path in the `gradle.properties` file. Open the file and update the `LOGSTASH_PATH`.
18
+
- Make sure Logstash is compiled.
19
+
- Point to the Elasticsearch branch/version to build the plugin with. Open the `gradle.properties` file and update `ELASTICSEARCH_TREEISH`.
20
+
21
+
### Build
22
+
We use Gradle tool to build this plugin. Gradle is configured to load the Logstash core jars from the `LOGSTASH_PATH` path, download the Elasticsearch version defined with `ELASTICSEARCH_TREEISH` and build the plugin.
23
+
The build process may fail if the Elasticsearch interfaces the plugin is using have changed.
24
+
25
+
The following command builds plugin and generates the jar file, can be locally installed in Logstash core and verified:
26
+
```shell
27
+
./gradlew clean vendor localGem
28
+
```
29
+
30
+
### Plugin test
31
+
The recommendation to run tests to align on our common [`plugins/.ci`](https://github.com/logstash-plugins/.ci) tool.
32
+
Run the following command under the plugin source dir to download the CI tool:
0 commit comments