Add dependency scopes option for scripting resolvers

This commit is contained in:
Ilya Muradyan
2020-07-12 04:27:28 +03:00
parent 742b98bed6
commit 1ac9b4c38f
8 changed files with 108 additions and 9 deletions
@@ -0,0 +1,2 @@
name,surname
John,Smith
1 name surname
2 John Smith
@@ -0,0 +1,9 @@
@file:Repository("https://dl.bintray.com/holgerbrandl/mpicbg-scicomp")
//Krangl depends on Klaxon transitively, that's why this repo is needed here
@file:Repository("https://dl.bintray.com/cbeust/maven")
@file:DependsOn("de.mpicbg.scicomp:krangl:0.13", options = arrayOf("scope=compile,runtime"))
import krangl.*
val df = DataFrame.readCSV("libraries/tools/kotlin-main-kts-test/testData/resolve-with-runtime.csv")
df.head().rows.first().let { "${it["name"]} ${it["surname"]}" }