Require help: custom realm

Hi,

I trying write a custom realm (elasticsearch version: 7.7.0) and leverage existing user auth and lookup system (similar to LDAP).
Search in Elasticsearch documentation take me to https://www.elastic.co/guide/en/elasticsearch/reference/current/custom-realms.html

To completely understand this document i am trying setup https://github.com/elastic/elasticsearch/tree/7.7/x-pack/qa/security-example-spi-extension as independent project to create single jar file.

At this point i am struggling to bundle the code into single jar. Pointers to question below will help.

  1. Are there gradle plugin from elastic which compile and build a uber jar?
  2. Can we deploy custom realm plugin which basic license?

Thanks in advance.

Warm regards,
Gangadhar

Custom realms are not available with the free Basic license.