Install yugabyte JDBC driver on Mac

I need to install the JDBC driver on mac with Gradle dependency, but I do not have any experience with that. Can anyone help me with this?

Being discussed on slack Slack

The user installed the driver like the sample java project in yb-simple-sample/ysqlsh/simple-gradle at main · yogendra/yb-simple-sample · GitHub.