Added fix for checking version against gradleApi() - fixed condition