-
Notifications
You must be signed in to change notification settings - Fork 15
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
Kotlin DSL #7
Comments
Sorry, the plugin does not support Kotlin DSL at the moment, it should be explcitly mentioned in readme, I'll fix this. There are no plans for Kotlin support yet because it requires a pretty tricky logic that is hard to implement with Kotlin comparing to Groovy. I would appreciate if somebody can help with Kotlin support. |
Which part is tricky? I'll figure out how I have time, but I would like to solve DSL support, because I would like to use :) |
Stracktrace you posted is caused (most probably) by the Groovy trick to handle unknown methods with special But I think the trickiest part will be manual Kotlin script evaluation, the code for Groovy can be found in I also fear that entire plugin must be rewritten in Java to make it work for both Kotlin and Groovy, but this is not 100% clear as I never wrote Gradle plugins for Kotlin DSL before. |
Okay, thanks! I'll check in the next few days/weeks and write here :) |
Btw temporary solution:
|
Yeah, good point, that should work if you are fine with keeping your |
Hi,
Is it possible to use with kotlin dsl in android project?
Android Studio 3.6.2 can't resolve git {} in the gradle.kts file, but it can clone the repo. Just get an error after clone.
Has anybody idea?
settings.gradle.kts
build.gradle.kts
Error
The text was updated successfully, but these errors were encountered: