No, I create a new version of the Jar for openhab5, because my installation is on openhab5.
Just have to make the change in thing-type to enable it working correctly.
But I don’t need any other change, the addon work as it without any other modification on Java 21 / Openhab 5. So it’s great.
About building for both version, there’s a talk about this there: