-
Notifications
You must be signed in to change notification settings - Fork 138
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
base: main
Are you sure you want to change the base?
Conversation
@@ -21,11 +21,6 @@ repositories { | |||
gradlePluginPortal() | |||
} | |||
|
|||
application { | |||
// Define the main class for the application. | |||
mainClassName = "MainKt" |
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.
mainClassName
got deprecated and project is no longer be able to compile with it with newer Gradle versions
cb4a7e8
to
53ab798
Compare
@@ -1,3 +1 @@ | |||
rootProject.name = "app" | |||
// https://docs.gradle.org/7.0/release-notes.html | |||
enableFeaturePreview("VERSION_CATALOGS") |
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.
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" |
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.
Enable compilation optimizations and produce a binary with better runtime performance. Reference here
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.