Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three things that the script converted worngly #34

Open
simtop opened this issue Feb 13, 2021 · 0 comments
Open

Three things that the script converted worngly #34

simtop opened this issue Feb 13, 2021 · 0 comments

Comments

@simtop
Copy link
Contributor

simtop commented Feb 13, 2021

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"
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant