In 10 minutes, join <@UABCKNV3K> and <@U064SC6DSLX...
# community-news
o
In 10 minutes, join @Paul Merlin and @Dmitriy Smirnov for the presentation about IntelliJ IDEA – The IDE That Speaks Gradle - https://www.youtube.com/live/qg6tj8Tf36E Why and when is a working CLI build not enough? What does it mean to actually support Gradle in an IDE? Why should you wait for that sync to finish? And what does paying that price bring? The Gradle and IntelliJ IDEA teams have long been collaborating to bring an optimal developer experience. In this talk, Gradle Principal Engineer Paul Merlin and IntelliJ IDEA Product Manager Dmitrii Smirnov will showcase the IDE’s capabilities for running, testing, navigating, and editing. They’ll also discuss technical implementations like what sync is and how it works, and shed light on what to expect in the future.
👀 3
👍 1
p
For some reasons I am unable to use the live chat, but how can you add a custom model to sync it with the IntelliJ sync? Use-case sqldelight: We use the Gradle model api and a custom IntelliJ plugin, but currently, we need to invoke the Gradle Tooling api in the IntelliJ plugin by ourselves, but we want to reuse the built-in IntelliJ sync
n
Sorry for the delay. To reuse the built-in IntelliJ sync, you can start with implementing a
GradleProjectResolverExtension
in your plugin. While the interface is quite large, most of the methods can default as no-op and there is a good base implementation
AbstractProjectResolverExtension
. As a reference, I suggest you to take a look at GradleNativeProjectResolver. You will have to pack some classes separately to be injected into Gradle process. In the above example, see this directory as a sample, that contains model definition and model builders, also registered as a SPI implementations.
👍 2
p
Thank you, will take a look!