:wave: Hi, I've always wondered why the official G...
# self-promotion
s
šŸ‘‹ Hi, I've always wondered why the official Gradle plugin for IntelliJ would offer autocompletion for any third party Maven dependency like this (or maybe it is not even the Gradle plugin but Android's plugin):
Copy code
dependencies {
    implementation("<caret>") // suggest dependencies and versions
}
but does not do anything for local projects/modules:
Copy code
dependencies {
    implementation(project("<caret>")) // nothing!
}
--- I know there is the
TYPESAFE_PROJECT_ACCESSORS
feature, but it has remained in experimental state for the past... šŸ‘€ well it was announced in Gradle 7.0.0 in 2021... And there are still many invalidation issues/drawbacks when using it, especially on large multimodules projects. @Zac Sweers blogged about it in zacsweers.dev/dont-use-type-safe-project-accessors-with-kotlin-gradle-dsl last year. So, I finally took the opportunity to create a very simple and straightforward IntelliJ plugin to fill this gap. I was inspired by slackhq/foundry 's skate plugin, and published a plugin that would work without any prior setup. Maybe Gradle can see this, and include this functionality (and some other neat features I included) in their next plugin versionšŸ¤ž • github.com/SimonMarquis/Gradle-Project-Paths • plugins.jetbrains.com/plugin/32671-gradle-project-paths
j
i wish intellij would just implement this already, i also have implemented this inside Spotlight (the plugin mentioned in zac's post).
šŸ‘€ 1
v
Maybe Gradle can see this, and include this functionality (and some other neat features I included) in their next plugin version
Gradle does not provide any such plugin. The Gradle support in IntelliJ is built-in, so you should probably open a feature request on JetBrains' YouTrack instance.
s
I (incorrectly) assumed that these plugin were somehow mostly contributed by Gradle engs • github.com/JetBrains/intellij-platform-gradle-plugin • github.com/JetBrains/…/gradle I'll have to take a closer look to see which would be more relevant and open an issue on YT. Thanks.