[FIR plugin] Compile annotations in plugin sandbox to jvm and js
This is needed for further testing of plugins with JS backend
This commit is contained in:
committed by
Space Team
parent
a0f7656d2b
commit
fd670d33cb
@@ -47,7 +47,7 @@ projectTest(parallel = true, jUnitMode = JUnitMode.JUnit4, maxHeapSizeMb = 3072)
|
||||
workingDir = rootDir
|
||||
useJUnitPlatform()
|
||||
dependsOn(":plugins:fir-plugin-prototype:jar")
|
||||
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:jar")
|
||||
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:distAnnotations")
|
||||
}
|
||||
|
||||
testsJar()
|
||||
|
||||
@@ -1,10 +1,31 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
kotlin("multiplatform")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(kotlinStdlib())
|
||||
kotlin {
|
||||
jvm()
|
||||
js {
|
||||
binaries.executable()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-common"))
|
||||
}
|
||||
}
|
||||
val jvmMain by getting {
|
||||
dependencies {1
|
||||
implementation(kotlin("stdlib-jdk8"))
|
||||
}
|
||||
}
|
||||
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-js"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -12,4 +33,6 @@ sourceSets {
|
||||
"test" { none() }
|
||||
}
|
||||
|
||||
runtimeJar()
|
||||
tasks.register("distAnnotations") {
|
||||
dependsOn("jvmJar", "jsJar")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user