Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions bench/include/kotlin-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

dependencies {
// implementation(kotlin("stdlib"))
// implementation("org.slf4j:slf4j-api:1.7.36")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 0 additions & 2 deletions bench/include/kotlin-jvm/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -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

11 changes: 5 additions & 6 deletions bench/include/kotlin-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import org.jetbrains.kotlin.config.KotlinCompilerVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
val kotlinVersion = "1.8.21"
val kotlinVersion = "2.1.10"
kotlin("multiplatform").version(kotlinVersion)
kotlin("plugin.serialization").version(kotlinVersion)
id("com.github.ben-manes.versions").version("0.46.0")
id("com.github.ben-manes.versions").version("0.52.0")
}

repositories {
Expand All @@ -24,8 +24,8 @@ kotlin {
implementation(libs.bignum)
implementation(libs.kbignum)
// implementation("com.ionspin.kotlin:bignum:0.3.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
}
}
}
Expand All @@ -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

}
}

Expand Down
1 change: 0 additions & 1 deletion bench/include/kotlin-native/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
https.protocols=TLSv1.2,TLSv1.3
kotlin.mpp.stability.nowarn=true
kotlin.native.binary.memoryModel=experimental
4 changes: 2 additions & 2 deletions bench/include/kotlin-native/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]

[libraries]
bignum = {module = "com.ionspin.kotlin:bignum", version = "0.3.8"}
kbignum = {module = "com.soywiz.korlibs.kbignum:kbignum", version = "3.4.0"}
bignum = {module = "com.ionspin.kotlin:bignum", version = "0.3.10"}
kbignum = {module = "com.soywiz.korlibs.kbignum:kbignum", version = "4.0.10"}

[bundles]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 1 addition & 2 deletions bench/include/kotlin-native/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// https://docs.gradle.org/7.0/release-notes.html
enableFeaturePreview("VERSION_CATALOGS")

Loading