Plugin [my-plugin] was built for Elasticsearch version 7.6.0 but version 7.6.2 is running

Hello,
We are facing a problem here with elastic search not installing our custom plugin.
We built a filter plugin with ElasticSearch 7.6.0 using org.elasticsearch.gradle:build-tools:7.6.0
But can't use it with ElasticSearch 7.6.2. Why is it complaining about a sub-version?
Any help/insight is highly appreciated.
Thank you.

There's no guarantee of compatibility of the plugin API between 7.6.0 and 7.6.2. You must build the plugin against the exact version you intend to use.