Convert module to independent project

I would like to create a plugin that will be extracted from an existing convention plugin so that I can use the plugin across many independent apps and libraries. The convention plugin follows the standard build-logic/… structure, fwiw. How would I go about doing this. Links to code, articles other posts would be most welcome and appreciated.

As there is no “standard build-logic/… structure” I guess you mean that you have it in an included build in build-logic.
That means build-logic already is a standalone build that you just automatically build when necessary.
Just move the whole folder to the desired new location, add the Gradle wrapper files, and most of the work is done already.