Read a build.gradle or build.gradle.kts line by line: dependency configurations, plugins and version catalog references, with the limits stated.
Waiting for a Gradle build file
Nothing is uploaded. Paste the file, or load an example.
api puts a dependency on the compile classpath of everything that consumes your module, so its version becomes part of your public contract. implementation keeps it private and lets you change it freely. Both compile your own code identically, which is why the wrong choice survives review and surfaces as somebody else’s breaking change.
Paste a Gradle build file to see what it declares and how far each dependency can move.
A Gradle build file is a program, and this reader does not run it. Dependencies added inside a condition, a loop, a function, a subprojects block or an applied script are not detected, so treat every count here as a lower bound. For the authoritative list, run ./gradlew dependencies yourself — that output can be read in the lint and dependency inspectors on this site.
Gradle Build File Inspector runs entirely on your device — your build file is parsed in your browser, never executed, and nothing is sent anywhere
You’re on the Free plan. Compare plans
api versus implementation is the choice Gradle users get wrong most often and the one this leads with. An api dependency leaks onto the compile classpath of every consumer, so its version becomes part of your public contract and changing it is a breaking change for them. implementation keeps it private. Both compile your own code identically, which is exactly why the wrong choice survives review.
A Gradle build file is a program, and this reader does not run it. Dependencies added inside a condition, a loop, a function, a subprojects block or an applied script are invisible to any reader that does not execute the file — so every count here is a floor rather than a total, and the page says so rather than implying completeness.
Version catalog references are reported as inherited rather than guessed at. An entry written as libs.something resolves in gradle/libs.versions.toml, which is a different file, and an alias gives no hint of the version behind it.
Visibility to consumers. api puts the dependency on their compile classpath, so they can use its types and are affected when you change its version. implementation does not, so you can change it freely. Your own code compiles the same either way.
Because the build file is executable code and this reads it as text. A dependency declared inside an if, a loop or a function is not detected, so the counts are a lower bound. Saying so is more useful than implying a complete answer.
Because the version is in gradle/libs.versions.toml, which is not this file. An alias such as libs.okhttp carries no version information at all, so reporting it as inherited is the honest answer.
No. Nothing is run, no task is invoked and no dependency is resolved. That is a deliberate limit: executing a build file means running arbitrary code.
Closely. Both are on the compile classpath and absent at runtime, which produces the same NoClassDefFoundError if the container does not supply the class. Gradle separates the runtime side into runtimeOnly, which Maven does not.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab