-
Notifications
You must be signed in to change notification settings - Fork 275
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
Simplify Kotlin DSL setup #531
Conversation
Latest 6.x version
Since Gradle sets the maximum heap to 64m now, the minimum heap can't be set to 128M.
I see what seem to be good cleanups in here, but I don't see anything particular to what |
This is the documentation of the plugin and what it provides: https://docs.gradle.org/current/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin Sadly, I don't think it is possible to omit the version number from Groovy DSL scripts :(. So I looked up the version which ships with Gradle 6.9. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks fair.
src/main/kotlin/com/google/protobuf/gradle/ProtobufConfiguratorExts.kt
Outdated
Show resolved
Hide resolved
Since Gradle sets the maximum heap to 64m now, the minimum heap can't be set to 128M.
@ejona86 Thank you for the review, I addressed your comments. Please take another look! |
- CI is set to true in Github action runs anyway. - The memory settings shouldn't be necessary any more.
I got quite a few warnings when trying to upgrade Gradle to 6.9.1 on the build for #530. I was wondering if using the
kotlin-dsl
plugin could work, so less manual configuration is necessary.It seems like the compatibility class
KtDslCompatibilityUtils
was only there for Kotlin DSL versions prior to Gradle 5.0, and the plugin only supports Gradle 5.6. So I wonder if the changes I did would work and maybe simplify things.