Apply scripting subplugin in gradle mpp plugin, so scripts could be added to mpp sources

#KT-30679 fixed
This commit is contained in:
Ilya Chernikov
2019-03-28 19:22:14 +01:00
parent 3a3ba5bd8d
commit 16ae313b22
6 changed files with 19 additions and 6 deletions
@@ -398,6 +398,7 @@ class NewMultiplatformIT : BaseGradleIT() {
arrayOf(
it + "com/example/lib/CommonKt.class",
it + "com/example/lib/MainKt.class",
it + "Script.class",
it + "META-INF/new-mpp-lib-with-tests.kotlin_module"
)
},
@@ -37,7 +37,8 @@ kotlin {
}
configure([main, jvmWithoutJavaMain]) {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
implementation 'org.jetbrains.kotlin:kotlin-script-runtime'
}
}
configure([test, jvmWithoutJavaTest]) {
@@ -29,6 +29,7 @@ kotlin {
configure(listOf(main, jvmWithoutJavaMain)) {
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("script-runtime"))
}
}