Open Garf1eldGit opened 5 months ago
Hi @Garf1eldGit ; Thanks for chiming in here! Could you share more about how your project is structured, and what plugins and configuration specifically make it a Kotlin (Android) app?
I'm thinking the problem lies in the rewrite-gradle-plugin failing to pick up your Kotlin sources; we have some logic towards that here and further down. https://github.com/openrewrite/rewrite-gradle-plugin/blob/106441ad01dd41424472e01d153ea773a5ea8215/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java#L651-L654
Hopefully from any config you share we can then work out what we need to do to parse your project properly, such that you can run recipes as well.
I'm trying to integrate a plugin into an Android project, I use gradle and kts as the build system
UPD: I checked using a debugger, the source sets are really empty
Hi! I added a plugin to a project with 1 module, in the root build.gradle I installed the plugin version and the library version for Kotlin. After synchronizing the project, I ran the command
./gradlew rewriteRun
, but nothing changed. What am I doing wrong?Command output
rewrite.yml
Source code that needs to change (typealias OldAlias)
plugin "org.openrewrite.rewrite" version "6.8.0" "org.openrewrite:rewrite-kotlin:1.11.0"