@@ -17,10 +17,13 @@ defaultTasks(":instanceSetup", ":packageDeploy")
17
17
description = " Slinkt"
18
18
group = " com.cognifide"
19
19
20
- repositories {
21
- jcenter()
22
- maven(" https://repo.adobe.com/nexus/content/groups/public" )
23
- maven(" https://dl.bintray.com/acs/releases" )
20
+ allprojects {
21
+ repositories {
22
+ jcenter()
23
+ maven(" https://repo.adobe.com/nexus/content/groups/public" )
24
+ maven(" https://dl.bintray.com/acs/releases" )
25
+ maven(" https://dl.bintray.com/jetbrains/intellij-third-party-dependencies" )
26
+ }
24
27
}
25
28
26
29
dependencies {
@@ -39,12 +42,8 @@ dependencies {
39
42
compileOnly(" com.google.code.gson:gson:2.8.2" )
40
43
compileOnly(" joda-time:joda-time:2.9.1" )
41
44
42
-
43
- compileOnly(" org.jetbrains.kotlin:kotlin-script-runtime:1.4.0" )
44
45
compileOnly(" org.jetbrains.kotlin:kotlin-script-util:1.4.0" )
45
46
compileOnly(" org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.0" )
46
- compileOnly(" org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.4.0" )
47
- compileOnly(" org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4.0" ) // runtime
48
47
49
48
compileOnly(" com.adobe.aem:uber-jar:6.5.0:apis" )
50
49
@@ -74,26 +73,20 @@ tasks {
74
73
}
75
74
packageCompose {
76
75
installBundle(" org.jetbrains.kotlin:kotlin-osgi-bundle:1.4.0" )
76
+ installBundleProject(" :kotlin:compiler-embeddable" )
77
+ installBundleProject(" :kotlin:script-runtime" )
78
+ installBundleProject(" :kotlin:script-util" )
79
+ installBundleProject(" :kotlin:scripting-common" )
80
+ installBundleProject(" :kotlin:scripting-jvm" )
81
+ installBundleProject(" :kotlin:scripting-compiler" )
82
+ installBundleProject(" :kotlin:scripting-compiler-embeddable" )
83
+ installBundleProject(" :kotlin:scripting-compiler-impl-embeddable" )
77
84
}
78
85
jar {
79
86
bundle {
80
87
attribute(" ScriptEngine-Name" , " kts" )
81
88
attribute(" ScriptEngine-Version" , " 1.4" )
82
-
83
- // embed jsr
84
- attribute(" Include-Resource" , " kotlin-script-util-1.4.0.jar,kotlin-script-runtime-1.4.0.jar,kotlin-scripting-compiler-embeddable-1.4.0.jar,/Users/krystian.panek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-impl-embeddable/1.4.0/b2446c3e97bc1aeb4c5e5565c25393f377827aca/kotlin-scripting-compiler-impl-embeddable-1.4.0.jar,trove4j-1.0.20181211.jar,kotlin-scripting-compiler-impl-embeddable-1.4.0.jar" )
85
- attribute(" Bundle-ClassPath" , " .,kotlin-script-util-1.4.0.jar,kotlin-script-runtime-1.4.0.jar,kotlin-scripting-compiler-embeddable-1.4.0.jar,kotlin-scripting-compiler-impl-embeddable-1.4.0.jar,trove4j-1.0.20181211.jar,kotlin-scripting-compiler-impl-embeddable-1.4.0.jar" )
86
-
87
- exportPackage(" kotlin.script.*" )
88
- privatePackage(" org.jetbrains.kotlin.*" , " org.jetbrains.jps.*" , " gnu.trove.*" )
89
- excludePackage(" org.sonatype.aether.*" , " com.jcabi.aether" , " sun.misc" , " sun.nio.ch" , " com.sun.*" , " gnu.trove" ,
90
- " org.jetbrains.kotlin.com.*" , " org.jetbrains.kotlin.org.*" , " org.jetbrains.org.*" ,
91
- " org.jetbrains.ide" , " org.jetbrains.annotations" , " org.checkerframework.*" ,
92
- // TODO ?
93
- " javaslang.*" ,
94
- " net.rubygrapefruit.platform" ,
95
- " kotlinx.coroutines"
96
- )
89
+ exportPackage(" com.neva.slinkt" )
97
90
}
98
91
}
99
92
}
@@ -108,4 +101,3 @@ publishing {
108
101
}
109
102
}
110
103
}
111
-
0 commit comments