Fix actualisation of common source sets when HMPP is disabled

#KT-34256 Fixed
#KT-34402 Fixed
This commit is contained in:
Andrey Uskov
2019-10-18 17:37:59 +03:00
parent 847e287bd6
commit 40bb48e19b
4 changed files with 111 additions and 31 deletions
@@ -0,0 +1,51 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url 'http://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
apply from: "include.gradle"
def kotlinVersion = gradleKotlinPluginVersion('1.3.50')
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
apply plugin: 'kotlin-multiplatform'
group 'com.example'
version '0.0.1'
kotlin {
js {
browser {
}
nodejs {
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
}
}
}
}
@@ -0,0 +1,2 @@
rootProject.name = 'KotlinMPPL'
enableFeaturePreview('GRADLE_METADATA')