mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
This commit adds an elasticsearch gradle plugin which sets up a project to build an MRJAR. By applying the plugin, the src dir is checked for any directories matching mainXX where XX is the java version number. A source set is automatically setup, an appropriate compiler tied to that source set, and it's output placed in the correct part of the final jar. Additionally, the sourceset allows use of preview features in that verison of Java, and the preview bits are stripped from the resulting class files. |
||
---|---|---|
.. | ||
src | ||
build.gradle |