-
Notifications
You must be signed in to change notification settings - Fork 27
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
Improve Gradle Kotlin DSL compatibility #1009
Comments
This is strange, I would ideally like the kts version to be more straight forward. Are we doing something weird in our config that makes it hard to do this? |
I don't know @loosebazooka ... I'm not an expert on that. |
Here is my working configuration. It has been a very frustrating experience. Things that could be done to improve the compatibility with the Kotlin DSL
|
You can have a nicer API by providing an extension function like the one the fun org.gradle.api.Project.`application`(configure: org.gradle.api.plugins.JavaApplication.() -> Unit): Unit =
(this as org.gradle.api.plugins.ExtensionAware).extensions.configure("application", configure) |
Hi!
I'm switching over in my Gradle build files from Groovy (build.groovy) to the Gradle Kotlin DSL (build.groovy.kts).
(using Gradle 5.4.1)
It is not obvious IMHO, that the Groovy version of the appengine configuration section (build.gradle)
must be written (AFAIK) like this, using the Gradle Kotlin DSL (build.gradle.kts)
Could you add some Gradle Kotlin DSL examples somewhere in the https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/master/USER_GUIDE.md ?
Thanks a lot and best regards,
Peti
The text was updated successfully, but these errors were encountered: