Skip to content
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

Bump Kotlin Version to 2.1.10 #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

@@ -21,11 +21,6 @@ repositories {
gradlePluginPortal()
}

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

@@ -41,8 +41,7 @@ kotlin {
//
kotlin.targets.withType(KotlinNativeTarget::class.java) {
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