add js target for core

This commit is contained in:
InsanusMokrassar 2019-11-25 00:40:05 +06:00
parent f086a71e01
commit 30eefcd87b
3 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#Wed Oct 16 13:07:45 OMST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists

View File

@ -31,6 +31,7 @@ repositories {
kotlin {
jvm()
js()
sourceSets {
commonMain {
@ -54,9 +55,6 @@ kotlin {
implementation kotlin('stdlib-jdk8')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version"
api "com.soywiz.korlibs.klock:klock:$klockVersion"
api "com.benasher44:uuid:$uuidVersion"
}
}
jvmTest {
@ -64,5 +62,12 @@ kotlin {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlin_serialisation_runtime_version"
}
}
}
}

View File

@ -1,5 +1,3 @@
rootProject.name='postssystem'
include ':postssystem.core'
include ':postssystem.exposed'
enableFeaturePreview("GRADLE_METADATA")