Rename Java packages using Gradle/Groovy -


i'm pretty new java/gradle, please take easy on me!

basically, needing rename java packages (i.e. com.example.x com.example.y).

i need able through gradle (groovy) task. it's simple enough rename directory structure, import statements @ top of each class still refer com.example.x.

yes, aware eclipse , intellij both have refactoring tools this, need able run gradle task on command line.

does have idea how can achieved? many thanks.


Comments