gianluz
07/06/2019, 8:02 PMscript.main.kts
@file:Repository("<https://repo1.maven.org/maven2>")
@file:DependsOn("org.apache.commons:commons-text:1.6")
import org.jetbrains.kotlin.script.util.DependsOn
import org.jetbrains.kotlin.script.util.Repository
import org.apache.commons.text.WordUtils
val hello = "helloWorld"
print(hello)
print(WordUtils.capitalize(hello))
$: kotlinc -cp kotlin-main-kts-1.3.41.jar -script script.main.kts
script.main.kts:7:12: error: unresolved reference: apache
import org.apache.commons.text.WordUtils
^
script.main.kts:11:7: error: unresolved reference: WordUtils
print(WordUtils.capitalize(hello))
^
i do not understand what's wrong here.. 😢gianluz
07/09/2019, 12:54 PMilya.chernikov
07/10/2019, 10:12 AMgianluz
07/12/2019, 11:19 AM