openrewrite / rewrite-gradle-plugin

OpenRewrite's Gradle plugin.
Apache License 2.0
65 stars 41 forks source link

Unable to rewrite dependency in build.gradle.kts #317

Closed k3vonk closed 3 months ago

k3vonk commented 3 months ago

What version of OpenRewrite are you using?

I am using

How are you running OpenRewrite?

I am using the Gradle plugin, and my project is a single module project.

plugins {
    kotlin("jvm") version "1.9.24"
    kotlin("plugin.spring") version "1.9.24"
    id("org.springframework.boot") version "3.3.2"
    id("io.spring.dependency-management") version "1.1.6"
    id("org.openrewrite.rewrite") version "6.20.0"
}

What is the smallest, simplest way to reproduce the problem?

Dependency in my build.gradle.kts is rewritten

What did you see instead?

Build succeeded and nothing was rewritten. But when I move my build script to build.gradle and rerun, I'm able to see the dependency change. Is this a limitation?

What is the full stack trace of any errors you encountered?

N/A

timtebeek commented 3 months ago

Hi! We're tracking support for .kts files in this existing issue; welcome to subscribe there for updates