I am purely from the Maven background, I haven't used the Gradle build so far.
Completed :
I am able to successfully build this project https://github.com/opendistro-for-elasticsearch/anomaly-detection using the
./gradlew build
As per the documentation in the project, It is mentioned that
./gradlew :run
command will launch a single node elastic search cluster with the two plugins installed. I tried and I am able to get both the plugins installed like belowhttp://127.0.0.1:9200/_cat/plugins?v&s=component&h=name,component,version,description
Question :
Now I am trying to understand this opensource code,
What is the purpose of these four tags in build.gradle (https://github.com/opendistro-for-elasticsearch/anomaly-detection) : buildscript, plugins, repositories, ext
when I look at the
build.gradle
, It seems that the following package is called for building,allprojects { group = 'com.amazon.opendistroforelasticsearch'
plugins.withId('java') { sourceCompatibility = targetCompatibility = "1.8" }
}
But where is the main method/trigger point for this code (https://github.com/opendistro-for-elasticsearch/anomaly-detection) ? Could someone look at this github project and let me know the starting point of the code so that I will debug and get the remaining context please!!
Any help is appreciated!
Thanks,
Harry