Home > Net >  Migrating from Groovy to Kotlin, upgrading Gradle versions too
Migrating from Groovy to Kotlin, upgrading Gradle versions too

Time:10-27

Hello Gradle experts!,

I want to migrate a complicated multi-module with and old Gradle version (4.7) to the latest Gradle. I would like to be able to test the new build environment by also moving to Kotlin (Existing version is Groovy).

So my questions are:

  • It is possible to have side by side Kotlin scripts with Gradle scripts, and let old Gradle use the Groovy scripts by default? ( I didn’t saw this approach documented here: Migrating build logic from Groovy to Kotlin)
  • Or I should byte the bullet first by migrating Gradle from 4.7 to 7.2, while keep using Groovy? If so, any recommendations while doing this refactoring?

Thanks in advance, please let me know if you me need to explain this into more detail.

–Jose

CodePudding user response:

Migrating to Kotlin seems to be the right path, then an upgrade to a newer version of Gradle will be easier.

  • Related