1
1
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack
2
2
3
- val kotlinVersion = " 1.5.20 "
4
- val serializationVersion = " 1.2.1 "
5
- val ktorVersion = " 1.6.1 "
3
+ val kotlinVersion = " 1.5.31 "
4
+ val serializationVersion = " 1.3.0 "
5
+ val ktorVersion = " 1.6.5 "
6
6
val logbackVersion = " 1.2.3"
7
- val kmongoVersion = " 4.2.7 "
8
- val reactWrappersVersion = " 17.0.2-pre.214-kotlin-1.5.20 "
7
+ val reactVersion = " 17.0.2-pre.265-kotlin-1.5.31 "
8
+ val kmongoVersion = " 4.3.0 "
9
9
10
10
plugins {
11
- kotlin(" multiplatform" ) version " 1.5.20 "
11
+ kotlin(" multiplatform" ) version " 1.5.31 "
12
12
application // to run JVM part
13
- kotlin(" plugin.serialization" ) version " 1.5.20 "
13
+ kotlin(" plugin.serialization" ) version " 1.5.31 "
14
14
}
15
15
16
16
group = " org.example"
17
17
version = " 1.0-SNAPSHOT"
18
18
19
19
repositories {
20
- maven(" https://dl.bintray.com/kotlin/kotlin-eap" )
21
20
mavenCentral()
22
21
}
23
22
@@ -60,8 +59,8 @@ kotlin {
60
59
implementation(" io.ktor:ktor-client-json:$ktorVersion " )
61
60
implementation(" io.ktor:ktor-client-serialization:$ktorVersion " )
62
61
63
- implementation(" org.jetbrains.kotlin-wrappers:kotlin-react:$reactWrappersVersion " )
64
- implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-dom:$reactWrappersVersion " )
62
+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-react:$reactVersion " )
63
+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-dom:$reactVersion " )
65
64
}
66
65
}
67
66
}
@@ -73,7 +72,9 @@ application {
73
72
74
73
// include JS artifacts in any JAR we generate
75
74
tasks.getByName<Jar >(" jvmJar" ) {
76
- val taskName = if (project.hasProperty(" isProduction" )) {
75
+ val taskName = if (project.hasProperty(" isProduction" )
76
+ || project.gradle.startParameter.taskNames.contains(" installDist" )
77
+ ) {
77
78
" jsBrowserProductionWebpack"
78
79
} else {
79
80
" jsBrowserDevelopmentWebpack"
0 commit comments