This repository was archived by the owner on Oct 3, 2021. It is now read-only.
File tree 2 files changed +9
-17
lines changed
kotlin/scripting-compiler
src/main/kotlin/com/neva/slinkt
2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,19 @@ plugins {
7
7
dependencies {
8
8
compileOnly(" org.jetbrains.kotlin:kotlin-scripting-compiler:1.4.0" )
9
9
compileOnly(" org.jetbrains.intellij.deps:asm-all:8.0.1" )
10
+ compileOnly(files(" /Users/krystian.panek/.gradle/kotlin-build-dependencies/repo/kotlin.build/intellij-core/201.7223.91/artifacts/intellij-core.jar" ))
10
11
}
11
12
12
13
tasks {
13
14
jar {
14
15
bundle {
15
- attribute(" Include-Resource" , " @kotlin-scripting-compiler-1.4.0.jar" )
16
- exportPackage(" org.jetbrains.kotlin.scripting.*" , " org.jetbrains.org.objectweb.asm.*" )
17
- excludePackage(
18
- " org.sonatype.aether.*" ,
19
- " com.jcabi.aether" ,
20
- " sun.misc" ,
21
- " sun.nio.ch" ,
22
- " com.sun.*" ,
23
- " org.jetbrains.ide" ,
24
- " org.jetbrains.annotations" ,
25
- " org.jetbrains.kotlin.com.google.errorprone.*" ,
26
- " org.checkerframework.*" ,
27
- // specific
28
- " net.rubygrapefruit.platform" ,
29
- " org.jetbrains.kotlin.js.*" ,
30
- " org.jline.*" ,
31
- " com.intellij.*" // TODO !!!!!!!!
16
+ attribute(" Include-Resource" , " @kotlin-scripting-compiler-1.4.0.jar,@intellij-core.jar" )
17
+ exportPackage(
18
+ " org.jetbrains.kotlin.scripting.*" ,
19
+ " org.jetbrains.org.objectweb.asm.*" ,
20
+ " com.intellij.*"
32
21
)
22
+ importPackageSuffix.set(" *;resolution:=optional" )
33
23
}
34
24
}
35
25
}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.osgi.framework.wiring.BundleWiring
5
5
import org.osgi.service.component.annotations.Activate
6
6
import org.osgi.service.component.annotations.Component
7
7
import org.slf4j.LoggerFactory
8
+ import kotlin.script.experimental.api.compilerOptions
8
9
import kotlin.script.experimental.host.StringScriptSource
9
10
import kotlin.script.experimental.jvm.dependenciesFromClassloader
10
11
import kotlin.script.experimental.jvm.jvm
@@ -34,6 +35,7 @@ class KotlinScriptEvaluator {
34
35
wholeClasspath = true ,
35
36
classLoader = classLoader
36
37
)
38
+ compilerOptions.append(" -Xintellij-plugin-root" , System .getProperty(" user.dir" ))
37
39
}
38
40
}
39
41
val evaluationConfiguration = createJvmEvaluationConfigurationFromTemplate<Any > {
You can’t perform that action at this time.
0 commit comments