Apply scripting subplugin in gradle mpp plugin, so scripts could be added to mpp sources
#KT-30679 fixed
This commit is contained in:
+1
@@ -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"
|
||||
)
|
||||
},
|
||||
|
||||
+2
-1
@@ -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]) {
|
||||
|
||||
+1
@@ -29,6 +29,7 @@ kotlin {
|
||||
configure(listOf(main, jvmWithoutJavaMain)) {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib"))
|
||||
implementation(kotlin("script-runtime"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user