Obsolete class in gradle 5.3


I am trying to update from gradle 4.2 to gradle 5.3 but I came across a deprecated class org.gradle.internal.operations.BuildOperationIdentifierRegistry and now the build fails.
I could not find its replacement in 5.3.

I submitted an issue on GitHub where I provided the details:

FYI Previously, the class was suggested by a gradle employee.
Could you please help resolve? I do not know what is the replacement for the above class and the related code.

Best regards,