GradleKotlinConverter
GradleKotlinConverter copied to clipboard
Three things that the script converted worngly
Hello I found out this 3 cases that it converted wrongly and I write you the right conversion. I hope it's helpful
I created a pull request fixing the first two issues with kapt.
groovy: kaptAndroidTest SomeLibrary kotlin: kaptAndroidTest(SomeLibrary)
groovy: kaptTest SomeLibrary kotlin: kaptTest(SomeLibrary)
Here are the right conversions: groovy: implementation fileTree(dir: "libs", include: [".jar"]) kotlin: implementation(fileTree(mapOf("dir" to "libs", "include" to listOf(".jar"))))
groovy: maven { url "SomeUrl" credentials { username 'SomeUsername' password 'SomePassword' } }
kotlin:
maven {
url = uri("SomeURL")
credentials {
username = "SomeUserName"
password ="SomePassword"
}
}