Hi,
How I got there.
It used to be that GoogleTalk had it's own server (talk.google.com) which was separate from the Mail Server (gmail.com)
However in Sierra you could Add the Google option in Messages "First" which would create a Google account in System Preferences > Internet Accounts and then once that was done you could activate the Mail Option.
Somehow Google coped with this.
In High Sierra, being aware of the "Messages First" scenario I used the Add Jabber account in the Messages Menu.
This did not show in the Google account in Internet accounts nor did it show in the Messages App > Preferences Account and you could not see the Buddy List.
I removed the com.apple.iChat.Jabber.plist from ~/Library/Preferences
I removed the Google account from Internet accounts.
I then re-added the Google account and activated only Mail (It does not have a Messages option)
I then Added a New Other Account (Scroll the right hand pane's scroll bar)
Choose to add a Messages Account.
I then chose Jabber (All you can do in High Sierra).
I left the settings at NO SSL, Automatically Find Server and Port.
You then have to check the Messages > Preferences > Accounts to see if the account appears there.
IN the Server Setting you will find it is using port 5222 (non SSL port for Jabber) and the Server is gmail.com.
NOTES I have never used Google's 2 Step verification and at the Google Site I have the Security Settings set to Allow Less Secure app which is supposed to allow SSL rather than Google's 2 Step Verification.
In fact now I find it will not allow SSL either.
The Accounts does show it is using TLS instead.
It did take several goes on removing the Google Account I created in Messages in the first place before I got this to work.

8:31 pm Thursday; January 25, 2018
iMac 2.5Ghz i5 2011 (Sierra)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
iPhone 6 iOS 11.x and an iPad (2)