https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

Ray Rahke

03/17/2024, 3:28 AM
all you have to do is enable
orx-olive
in the
orxFeatures
set in
build.gradle.kts
and reimport the gradle project.
What does "reimporting the gradle project" mean if I am not using IntelliJ? is there a command I can run on the terminal?
v

Vampire

03/17/2024, 3:58 AM
What does "reimporting the gradle project" mean if I am not using IntelliJ?
Not IntelliJ, or no IDE? If the latter, then it means nothing.
r

Ray Rahke

03/17/2024, 4:58 AM
VSCode, but doing all the gradle stuff in command line
just not sure what it means to import gradle, even in intellij. I know it's a button you click.
h

hfhbd

03/17/2024, 7:29 AM
You want to sync/reimporting your Gradle project if you want to use IntelliJs Gradle features, like the task list or Kotlin DSL code completion. If you are using Gradle from your terminal, you don’t need a sync and just skip it.
j

Joffrey

03/17/2024, 10:12 AM
If you want highlighting and auto-completion in the IDE, the IDE has to know your project configuration, such as your dependencies, compiler options, where your sources are, etc. Since you usually want your project to be IDE-agnostic, this configuration is done in Gradle (or more generally a build tool). The import or sync operation is when the IDE reads the configuration from the build tool to setup its own internal configuration for your project. Even in VSCode there should be something like this if you don't want to duplicate your configuration in the IDE.