I tried built project security-example-spi-extension in version 7.2.0 using the branch 7.2, but the generated file is spi-extension-7.2.2-SNAPSHOT.zip, and when I try to install in ElasticSearch version 7.2.0 I got the message "Elasticsearch version 7.2.2 but version 7.2.0 is running".
If you have checked out the ES source, you could just check out the v7.2.0 tag and build that one. Or better maybe, create an external plugin, that depends on Elasticsearch 7.2.0.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.