check current gradle version code example
Example 1: latest gradle version
$ gradle -v
------------------------------------------------------------
Gradle 6.8.3
------------------------------------------------------------
Example 2: gradle version
$ gradle -v
------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------