https://kotlinlang.org logo
#scripting
Title
# scripting
e

efemoney

01/18/2023, 1:59 PM
Does the IDE main kts support maven dependencies or am I doing something wrong here. I’d like to resolve and use some dependencies from maven but even with auto reload enabled, I still cant access the classes ….
Copy code
@file:Repository("<https://repo.maven.apache.org/maven2/>")
@file:DependsOn("com.github.ajalt.clikt:clikt:3.5.0")

class FooCommand : CliktCommand() {

}
No auto complete for CliktCommand in this
i

Ivan Kubyshkin [JetBrains]

01/18/2023, 3:18 PM
AFAIU you need to use
@file:DependsOn("com.github.ajalt.clikt:clikt-jvm:3.5.0")
🙏 1
e

efemoney

01/18/2023, 3:29 PM
Oh wow, that was it 😅
👍 1
9 Views