You are currently viewing I just made a IntelliJ plugin which makes the Gradle Kotlin DSL a lot nicer to work with

I just made a IntelliJ plugin which makes the Gradle Kotlin DSL a lot nicer to work with

Hi

A few of you might remember my last post about this plugin, but just in case you don’t I added a refresher on what was possible before at the bottom.

What’s new?

  • You will actually be able to test it since I am going to publish it to the plugin store as an EAP
  • The Plugin can now ensure you use the same dependency declaration format in your entire project

implementation("a:b:c")

vs.

implementation("a", "b", "c")

vs.

implementation(group = "a", name = "b", version = "c")

Migrating to Positional

https://i.redd.it/meyu6cpn1mu61.gif

Migrating to Named Arguments

https://i.redd.it/swaaiqqp1mu61.gif

Migrating to notation

https://i.redd.it/l7z6ular1mu61.gif

Use more idiomatic Kotlin to apply plugins

https://i.redd.it/ln1rmo5l2mu61.gif

Known issues

  • The settings UI is broken
  • Dependency format is currently project based the application based setting does nothing
  • Auto convert currently always uses the notation format
  • You need to reopen the build.gradle.kts tab after adjusting settings

What already was possible (and now gets released to the public)

Converting Groovy dependencies to Kotlin

https://i.redd.it/h2dk26zs1mu61.gif

Converting Groovy plugins to Kotlin

https://i.redd.it/2rd9bbzu1mu61.gif

Converting ‘ to ” if possible

https://i.redd.it/xq9gqakw1mu61.gif

Where can I get it?

Right now you can only get it by downloading it manually since it’s pending aproval.

https://plugins.jetbrains.com/plugin/15341-gradleupdater/versions/eap/117802

Where is the Source?

Here: https://github.com/DRSchlaubi/Intellij-GradleUpdater/tree/develop

submitted by /u/Schlaubiboy
[link] [comments]