rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Dependency management support for Gradle Kotlin scripts (.kts)

Open sambsnyd opened this issue 2 years ago • 3 comments

What problem are you trying to solve?

Gradle supports Groovy and Kotlin as scripting languages for build files. We currently support editing Groovy-based build files. This should be extended to Kotiln.

Describe the solution you'd like

For each Gradle-groovy dependency management recipe there should be a Gradle-kotlin equivalent.

Additional context

Requires some enhancements to rewrite-kotlin and rewrite-gradle.

sambsnyd avatar Jun 03 '23 00:06 sambsnyd

I have an example use case here: currently, AddDependency, it adds dependencies without () around the string portion of the dependency. in groovy, either way is correct, but in kts, the () must be there.

wakingrufus avatar Oct 06 '23 13:10 wakingrufus

This has been opened for over a year, has there been any updates to this?

k3vonk avatar Aug 13 '24 16:08 k3vonk

@shanman190 Has done exploratory work in https://github.com/shanman190/rewrite-gradle-experimental ; it's definitely on the radar, but also a moving target now with efforts like https://blog.gradle.org/declarative-gradle-first-eap Trust me when I say we'd very much like to see this covered, and if it were easy we'd have done so already. :)

timtebeek avatar Aug 13 '24 16:08 timtebeek