Skip to content

Conversation

@AraujoJordan
Copy link

Bump Kotlin and Gradle to newer versions

  • Kotlin version 2.1.10 has some performance improvement since the previous implemented (1.8.21), so I'm eager to see how it's compares with other languages now.

  • Removing warnings related to deprecated experimental memory model. Seems that they got that merged into newer versions already.

  • Removed Versions Catalog feature preview flag. It's already a stable and we don't need that anymore.

  • Gradlew (and bat) files got updated with newer Gradle version.


application {
// Define the main class for the application.
mainClassName = "MainKt"
Copy link
Author

@AraujoJordan AraujoJordan Feb 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mainClassName got deprecated and project is no longer be able to compile with it with newer Gradle versions

@@ -1,3 +1 @@
rootProject.name = "app"
// https://docs.gradle.org/7.0/release-notes.html
enableFeaturePreview("VERSION_CATALOGS")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer necessary in newer Gradle versions

binaries.all {
binaryOptions["memoryModel"] = "experimental"
// freeCompilerArgs += "-Xruntime-logs=gc=info"
freeCompilerArgs += "opt"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable compilation optimizations and produce a binary with better runtime performance. Reference here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant