openrewrite / openrewrite/rewrite
Gradle wrapper upgrade recipe to 7.x+ is not updating "compile" dependencies to "implementation" in build.gradle files
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 570
- Avg merge
- 13h 12m
- Merged PRs (30d)
- 261
Description
How are you running OpenRewrite?
moderne.io
Problem statement
Gradle wrapper upgrade recipe to 7.x is not updating the "compile" to "implementation" string in build.gradle files.
What is the smallest, simplest way to reproduce the problem?
Create a Gradle (4.x) project with dependencies and then run the "Gradle wrapper upgrade" recipe to 7.x. You will notice the "compile" in build.gradle is not getting replaced with "implementation"
Are you interested in [contributing a fix to OpenRewrite]
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names build.gradle and the Gradle wrapper upgrade recipe; begin by reproducing it with a Gradle 4.x project containing dependencies and trace that recipe's handling of compile declarations. Done means the upgrade changes those declarations to implementation in build.gradle; use existing recipe tests, if present, to verify the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100