@Sheereen,
Kiaban doesn't support backwards compatibility between major versions, so if you try to install your 8.5 plugin in a 7.x version, it's not going to work out of the box.
If you really want to give it a try, then you could try to reverse engineer the breaking changes and code changes between 7 & 8 but it's probably going to take longer (and be more frustrating) than building the plugin from scratch directly in the 7.x code.
To summarize, no, Kibana 8 plugins aren't backward compatible across major versions.
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.