TargetCompatibility JavaVersion.VERSION_17 SourceCompatibility JavaVersion.VERSION_17 The Groovy DSL lets you to omit the assignment operator = whenĪssigning properties, whereas Kotlin requires it. This makes the conversion to Kotlin easier. This is the same code written in Kotlin: compileSdkVersion(30)Īdd = to assignment calls Tip: Before changing file extensions, add = to your Groovy code. This code shows how to configure a setting in Groovy: compileSdkVersion 30 To migrate your configuration, add parentheses to these sorts of Groovy lets you to omit parentheses in method calls, while Kotlin requires Add parentheses to method calls Tip: As a first step, even before changing the file extensions, add parentheses So you need to apply these changes throughout your build scripts. There are some general differences in syntax between Groovy and Kotlin,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |