GradleKotlinConverter icon indicating copy to clipboard operation
GradleKotlinConverter copied to clipboard

Three things that the script converted worngly

Open simtop opened this issue 5 years ago • 0 comments

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"
        }
    }

simtop avatar Feb 13 '21 20:02 simtop