Skip to content

Commit 60c84e3

Browse files
committed
Fix runtime dependencies for published scripting artifacts locally
1 parent 6bd229c commit 60c84e3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

libraries/scripting/jsr223/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11

22
plugins {
3+
maven
34
kotlin("jvm")
45
}
56

67
jvmTarget = "1.6"
78

9+
val publishedRuntime by configurations.creating {
10+
the<MavenPluginConvention>()
11+
.conf2ScopeMappings
12+
.addMapping(0, this, Conf2ScopeMappingContainer.RUNTIME)
13+
}
14+
815
dependencies {
916
compile(project(":kotlin-script-runtime"))
1017
compile(kotlinStdlib())
@@ -15,6 +22,8 @@ dependencies {
1522
compileOnly(project(":compiler:cli-common"))
1623
compileOnly(project(":kotlin-reflect-api"))
1724
compileOnly(intellijCoreDep())
25+
publishedRuntime(project(":kotlin-compiler"))
26+
publishedRuntime(project(":kotlin-reflect"))
1827
}
1928

2029
sourceSets {

libraries/scripting/jvm-host/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11

22
plugins {
3+
maven
34
kotlin("jvm")
45
}
56

67
jvmTarget = "1.6"
78

9+
val publishedRuntime by configurations.creating {
10+
the<MavenPluginConvention>()
11+
.conf2ScopeMappings
12+
.addMapping(0, this, Conf2ScopeMappingContainer.RUNTIME)
13+
}
14+
815
dependencies {
916
compile(project(":kotlin-script-runtime"))
1017
compile(kotlinStdlib())
@@ -14,6 +21,10 @@ dependencies {
1421
compileOnly(project(":compiler:cli"))
1522
compileOnly(project(":kotlin-reflect-api"))
1623
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
24+
publishedRuntime(project(":kotlin-compiler"))
25+
publishedRuntime(project(":kotlin-scripting-compiler"))
26+
publishedRuntime(project(":kotlin-reflect"))
27+
publishedRuntime(commonDep("org.jetbrains.intellij.deps", "trove4j"))
1728
}
1829

1930
sourceSets {

0 commit comments

Comments
 (0)