Indeed OpenID2 is deprecated, and that is the endpoint at https://www.google.com/accounts/o8/id;
Open-Source code can still be written; it will require just that the site integrating the open-source solution perform the registration step and supply the registration values (client_id, redirect_uri) to the open-source code. If you write the code with a modular approach to configuring the registration data, the code can be highly re-usable.