could anyone please tell me where to add dependenc...
# announcements
c
could anyone please tell me where to add dependency for console project?
g
Console project? What do you mean?
c
yes, you can use Intellij IDEA to create Console Application
g
So your question is how to add additional project dependencies? It’s not something specific for console application or any other application It depends on what kind project you are using is it Gradle, Maven or pure IDEA project?
I would first recommend check Getting Started, it has references to different types of application and different types of the projects https://kotlinlang.org/docs/getting-started.html
c
thank you for recommendation, still quite confused. I think I’m using Gradle build system
g
You can check gradle docs https://docs.gradle.org/current/userguide/dependency_management.html#declaring-dependencies UPD: or even better one about dependency management specifically for Java project, it will be the same for Kotlin/JVM https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html
Though, it has a lot of information, short answer just add this to build.gradle dependencies { implementation “somedependency1.0” }
if you followed getting started guide for Kotlin you probably already has this block