File tree 7 files changed +9
-11
lines changed
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>) {
37
37
println (" \n $ilen \n $clen \n ${content.length} " )
38
38
}
39
39
40
+ @OptIn(ExperimentalForeignApi ::class )
40
41
fun readAllText (filePath : String ): String {
41
42
val returnBuffer = StringBuilder ()
42
43
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
3
3
import org.jetbrains.kotlin.config.KotlinCompilerVersion
4
4
5
5
plugins {
6
- val kotlinVersion = " 2.0.21 "
6
+ val kotlinVersion = " 2.1.20 "
7
7
kotlin(" jvm" ).version(kotlinVersion)
8
8
kotlin(" plugin.serialization" ).version(kotlinVersion)
9
9
// kotlin("plugin.spring").version(kotlinVersion)
@@ -23,7 +23,7 @@ repositories {
23
23
24
24
application {
25
25
// Define the main class for the application.
26
- mainClassName = " MainKt"
26
+ mainClass.set( " MainKt" )
27
27
}
28
28
29
29
dependencies {
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =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
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
rootProject.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
3
3
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
4
4
5
5
plugins {
6
- val kotlinVersion = " 1.8.21 "
6
+ val kotlinVersion = " 2.1.20 "
7
7
kotlin(" multiplatform" ).version(kotlinVersion)
8
8
kotlin(" plugin.serialization" ).version(kotlinVersion)
9
9
id(" com.github.ben-manes.versions" ).version(" 0.46.0" )
@@ -24,8 +24,8 @@ kotlin {
24
24
implementation(libs.bignum)
25
25
implementation(libs.kbignum)
26
26
// 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 " )
29
29
}
30
30
}
31
31
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =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
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =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