actualization

This commit is contained in:
InsanusMokrassar 2019-11-20 10:04:03 +06:00
parent ed52b419e9
commit e2d10ac152
4 changed files with 19 additions and 14 deletions

View File

@ -1,5 +1,3 @@
project.version = "0.1.0"
project.group = "com.insanusmokrassar"
buildscript { buildscript {
repositories { repositories {
@ -15,8 +13,13 @@ buildscript {
} }
} }
apply plugin: 'kotlinx-serialization' plugins {
apply plugin: 'kotlin-multiplatform' id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
}
project.version = "$project_public_version"
project.group = "$project_public_group"
repositories { repositories {
mavenLocal() mavenLocal()
@ -26,12 +29,12 @@ repositories {
} }
kotlin { kotlin {
jvm("jvm8") jvm()
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation kotlin('stdlib')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutines_version" api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlin_serialisation_runtime_version" api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlin_serialisation_runtime_version"
@ -39,20 +42,22 @@ kotlin {
} }
commonTest { commonTest {
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-test-common:$kotlin_version" implementation kotlin('test-common')
implementation "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlin_version" implementation kotlin('test-annotations-common')
} }
} }
jvm8Main { jvmMain {
dependencies { dependencies {
implementation kotlin('stdlib-jdk8')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version" api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version" api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version"
} }
} }
jvm8Test { jvmTest {
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" implementation kotlin('test-junit')
} }
} }
} }
} }

View File

@ -1,7 +1,7 @@
kotlin.code.style=official kotlin.code.style=official
kotlin_version=1.3.50 kotlin_version=1.3.60
kotlin_coroutines_version=1.3.1 kotlin_coroutines_version=1.3.2
kotlin_serialisation_runtime_version=0.13.0 kotlin_serialisation_runtime_version=0.14.0
gradle_bintray_plugin_version=1.8.4 gradle_bintray_plugin_version=1.8.4