It should already support both those versions. Read this thread for more information. If you mean how players on both versions can be on the same server then there are some plugins that do this I think but most of the large networks use their own custom build of spigot.