-
Notifications
You must be signed in to change notification settings - Fork 61
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
gradle syntax how to convert to gradle kotlin script #195
Comments
@bmuschko Would you be able to provide kotlin-dsl samples as well? |
You may have seen that I am actively looking for someone to take on the development of this plugin in the README file. I won't have the time to contribute additional samples in the Kotlin DSL but I'd be more than open to access pull requests if someone wants to take on the work. The Gradle Docker plugin does something similar so a solution could use the same kind of approach. |
We tried to use this plugin in kotlin and got this issue: It fails with a class cast exception in com.bmuschko.gradle.cargo.convention.CargoPluginExtension#deployable:
It expects a DeployableClosureDelegate, but got a delegate closure (which is Gradle-Kotlin's strongly-typed variant of Groovy closures). However, com.bmuschko.gradle.cargo.convention.CargoPluginExtension.DeployableClosureDelegate is a private class so we cannot instantiate it. |
Try using the Kotlin DSL Groovy Builder, that worked for us. |
A limited example workaround using
|
how to convert cargo gradle config syntax to build.gradle.kts file?
The text was updated successfully, but these errors were encountered: