Is there a gradle code search (similar to <cs.andr...
# community-support
c
Is there a gradle code search (similar to cs.android.com) ? For example... I'm just trying to find what mavenCentral() and google() actually resolve to in gradle but github search is atrocious.
e
what's wrong with github search?
c
what's wrong with github search?
everything! cs.github.com used to be asesome when it worked lol
thanks for the javadoc link though. that helps. what if i wanted to find gradlePluginPortal() resolves to?
oh it's an internal package
c
thanks. i wish i could command click into it inside the IDE, but it never works lol thanks for teaching ephemient!
e
clicking in the IDE should at least lead you to the interface, and even if the IDE doesn't index the implementation because it's private, Gradle follows some pretty typical naming conventions so it's easy to find in the GitHub tree view even without codesearch
also nothing stopping you from writing
Copy code
repositories {
    mavenCentral { println("mavenCentral = $url") }
    google { println("google = $url") }
    gradlePluginPortal { println("gradlePluginPortal = ${(this as MavenArtifactRepository).url}") }
}
in your buildscript, just to see what the values are
c
oooh. thanks for teaching! ❤️
v
i wish i could command click into it inside the IDE, but it never works lol
clicking in the IDE should at least lead you to the interface, and even if the IDE doesn't index the implementation because it's private
Just use a decent IDE like IntelliJ IDEA and don't use Ctrl+Click but Ctrl+Alt+Click.
Ctrl+Alt+Click
Ctrl+Alt+Click
Ctrl+Alt+Click
c
TIL cmd + alt + click. thanks
👌 1