File tree Expand file tree Collapse file tree 7 files changed +9
-11
lines changed Expand file tree Collapse file tree 7 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ fun main(args: Array<String>) {
3737 println (" \n $ilen \n $clen \n ${content.length} " )
3838}
3939
40+ @OptIn(ExperimentalForeignApi ::class )
4041fun readAllText (filePath : String ): String {
4142 val returnBuffer = StringBuilder ()
4243 val file = fopen(filePath, " r" )? :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
33import org.jetbrains.kotlin.config.KotlinCompilerVersion
44
55plugins {
6- val kotlinVersion = " 2.0.21 "
6+ val kotlinVersion = " 2.1.20 "
77 kotlin(" jvm" ).version(kotlinVersion)
88 kotlin(" plugin.serialization" ).version(kotlinVersion)
99 // kotlin("plugin.spring").version(kotlinVersion)
@@ -23,7 +23,7 @@ repositories {
2323
2424application {
2525 // Define the main class for the application.
26- mainClassName = " MainKt"
26+ mainClass.set( " MainKt" )
2727}
2828
2929dependencies {
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.6 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.13 -bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 11rootProject.name = " app"
2- // https://docs.gradle.org/7.0/release-notes.html
3- enableFeaturePreview(" VERSION_CATALOGS" )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.config.KotlinCompilerVersion
33import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
44
55plugins {
6- val kotlinVersion = " 1.8.21 "
6+ val kotlinVersion = " 2.1.20 "
77 kotlin(" multiplatform" ).version(kotlinVersion)
88 kotlin(" plugin.serialization" ).version(kotlinVersion)
99 id(" com.github.ben-manes.versions" ).version(" 0.46.0" )
@@ -24,8 +24,8 @@ kotlin {
2424 implementation(libs.bignum)
2525 implementation(libs.kbignum)
2626 // implementation("com.ionspin.kotlin:bignum:0.3.1")
27- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 " )
28- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0 " )
27+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2 " )
28+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1 " )
2929 }
3030 }
3131 }
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.6 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.13 -bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1- // https://docs.gradle.org/7.0/release-notes.html
2- enableFeaturePreview(" VERSION_CATALOGS" )
1+ rootProject.name = " app"
You can’t perform that action at this time.
0 commit comments