Thanks to this post : Building a plugin with Gradle and Elasticsearch 5.0, I'm now able to debug an ES cluster with my plugin deployed in it.
buildscript {
dependencies {
classpath "org.elasticsearch.gradle:build-tools:6.2.0"
}
}
apply plugin: 'elasticsearch.esplugin'
esplugin {
licenseFile rootProject.file('LICENSE.txt')
noticeFile rootProject.file('NOTICE.txt')
name 'reverse-children-agg'
version rootProject.version
description 'ElasticSearch reverse chidren aggregation plugin'
classname 'com.softbridge.elasticsearch.join.ReverseChildrenAggPlugin'
hasClientJar = true
}
run {
distribution = 'zip'
dataDir = {'/path/to/my/data'}
clusterName = 'softbridge'
debug = true
}
I keep curious of how I can deploy one of the shipped :plugins: when I start (with gradle:run) the Cluster from the ES core project