11plugins {
2- kotlin(" js" ) version " 1.6 .10"
3- kotlin(" plugin.serialization" ) version " 1.6 .10"
2+ kotlin(" js" ) version " 1.7 .10"
3+ kotlin(" plugin.serialization" ) version " 1.7 .10"
44}
55
66group = " org.example"
@@ -23,26 +23,29 @@ kotlin {
2323
2424dependencies {
2525 // React, React DOM + Wrappers (chapter 3)
26- implementation(" org.jetbrains.kotlin-wrappers:kotlin-react:17.0.2-pre.297-kotlin-1.6.10" )
27- implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-dom:17.0.2-pre.297-kotlin-1.6.10" )
28- implementation(npm(" react" , " 17.0.2" ))
29- implementation(npm(" react-dom" , " 17.0.2" ))
26+ implementation(enforcedPlatform(" org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.354" ))
27+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-react" )
28+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-dom" )
3029
31- // Kotlin React CSS (chapter 3)
32- implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-css:17.0.2-pre.298-kotlin-1.6.10 " )
30+ // Kotlin React Emotion ( CSS) (chapter 3)
31+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-emotion " )
3332
3433 // Video Player (chapter 7)
35- implementation(npm(" react-youtube-lite " , " 1.5.0 " ))
34+ implementation(npm(" react-player " , " 2.10.1 " ))
3635
3736 // Share Buttons (chapter 7)
3837 implementation(npm(" react-share" , " 4.4.0" ))
3938
4039 // Coroutines & serialization (chapter 8)
41- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0 " )
42- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2 " )
40+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3 " )
41+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3 " )
4342}
4443
4544// Heroku Deployment (chapter 9)
4645tasks.register(" stage" ) {
4746 dependsOn(" build" )
47+ }
48+
49+ rootProject.extensions.configure< org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension > {
50+ versions.webpackCli.version = " 4.10.0"
4851}
0 commit comments