cedric
09/06/2016, 8:49 PMcedric
09/06/2016, 9:10 PMkotlin-compiler-embeddable-1.0.4-eap.jar
bamboo
09/06/2016, 9:33 PMcedric
09/06/2016, 9:45 PMilya.chernikov
09/07/2016, 7:29 AMcedric
09/07/2016, 3:50 PMcypher121
09/07/2016, 3:51 PMcedric
09/07/2016, 3:51 PMilya.chernikov
09/08/2016, 7:44 AMcedric
09/08/2016, 4:10 PMcypher121
09/08/2016, 4:12 PMScreenshot from 2016-09-08 09-02-12.png▾
ilya.chernikov
09/08/2016, 5:13 PMcypher121
09/08/2016, 5:14 PMcypher121
09/08/2016, 5:15 PMcedric
09/08/2016, 9:06 PMcypher121
09/09/2016, 7:43 AMcypher121
09/09/2016, 7:44 AM@file:DependsOn(type = "jar", id = "test.jar", imports = emptyArray<String>(), dependencyResolvers = emptyArray<DependencyResolver>())
, dependencyResolvers is nullcypher121
09/09/2016, 7:44 AM@file:DependsOn(id = "test.jar")
, everything, including type
and toString()
is "test.jar"ilya.chernikov
09/09/2016, 7:47 AMilya.chernikov
09/09/2016, 7:51 AMcoordinates: String
, and parse it within the resolver.ilya.chernikov
09/09/2016, 7:52 AMcypher121
09/09/2016, 7:52 AMilya.chernikov
09/09/2016, 7:53 AMcypher121
09/09/2016, 7:54 AMcedric
09/09/2016, 4:16 PMcypher121
09/09/2016, 4:29 PMresolve
method with a list of annotation classes you want to process, then get them from ScriptContents.annotations
and process however you want. I don't have my own code at hand, but here's an examplehttps://github.com/ligee/kotlin-jupyter/blob/master/src/main/kotlin/org/jetbrains/kotlin/jupyter/resolve.kt#L20cedric
09/09/2016, 4:30 PMcedric
09/09/2016, 4:31 PMval pl = plugins(“some:plugin:0.1”)
will cause the plug-in to be downloaded and the corresponding jar file needs to be added to the classpath before the rest of the script can be compiled. Is there any way to do this without a two-phase compilation?cypher121
09/09/2016, 4:32 PM@file:Plugin("some:plugin:0.1")
val pl = plugins("plugin")
might workcypher121
09/09/2016, 4:33 PM