[SalesForce] Deploying GlobalValueSet and GlobalPicklist with ANT error

I am trying to deploy GlobalValueSet and GlobalPicklist with ANT but get the following error:

globalPicklists/GP0.globalPicklist Global Value Set 0 0 Not available for deploy for this API version

api version I have in my package XML is 44

I had a look at the API Metadata doc and it is formatted correctly

      <types>
        <members>*</members>
        <name>GlobalValueSet</name>
      </types>
        <types>
        <members>GP0</members>
        <name>GlobalPicklist</name>
      </types>

What am I doing wrong?

Best Answer

GlobalPicklist was introduced in 37.0 version and is available only in this version

GlobalPicklist components are available in API version 37.0 only. In API version 38.0 and later, GlobalPicklist is replaced by the GlobalValueSet type.

you can read it from documentation

you should use only GlobalValueSet as it replaces GlobalPicklist