When using lint anayzing gradle project, how does it find the classpath to scan NewApi related problems?

hi, before I use AndroidLint in my eclipse project;
As I know, when class-scanner related rules enabled, it will find the classes by
parsing the .classpath file…
But after I use gradle, it gives me a hint:
please use gradlew lint… here, I hava a doubt that when using gradlew lint how it find the classpath?
And could you point the source code position?