bernaferrari / GradleKotlinConverter

Convert from Groovy to Kotlin DSL for Gradle, focused on Android.
https://gradle-kotlin-converter.vercel.app
Apache License 2.0
921 stars 61 forks source link

Do you know what that is in kotlin dsl? #2

Open LarsArtmann opened 5 years ago

LarsArtmann commented 5 years ago
artifacts {
    archives shadowJar
}
bernaferrari commented 5 years ago

That is a great question. I have no idea, I've never seen gradle like this. I'm currently on vacation, but I recommend you checking the official gradle kotlin kts migration or searching the web. I would probably guess archives = listOf(shadowJar) or archives(shadowJar) or archives =... Or something like that.

LarsArtmann commented 5 years ago

Do you have a link to this documentation? All suggestions did not work 😢

bernaferrari commented 5 years ago

https://docs.gradle.org/current/userguide/kotlin_dsl.html

There is this fairly complex project for inspiration: https://github.com/SUPERCILEX/Robot-Scouter

And you might also want to open an issue on kotlin dsl: https://github.com/gradle/kotlin-dsl

If you find out how to do the migration I can add it to the script.

On Mon, Jan 14, 2019, 03:48 Lars Artmann notifications@github.com wrote:

Do you have a link to this documentation? All suggestions did not work 😢

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/bernaferrari/GradleKotlinConverter/issues/2#issuecomment-453906988, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVblQbQ82oyM9qlU65BP6faGRdxP2Yvks5vDBpIgaJpZM4Z9ZAC .

LarsArtmann commented 5 years ago

I'll take a look. Ever thank you for the help.

bernaferrari commented 5 years ago

If you find your answer, please tell me, so I can improve the script. Else, I'll try to take a closer look at next week.

LarsArtmann commented 5 years ago

German

Leider konnte ich noch nicht die Zeit dafür finden.

English (Google translator)

Unfortunately I could not find the time for it yet.