IntelliJ IDEA Gradle Kotlin DSL Plugin Not Recognizing Dependencies
Could someone explain I'm deploying to production and I'm trying to implement I'm working with an scenario where IntelliJ IDEA (version 2023.1) is not recognizing the dependencies specified in my `build.gradle.kts` file for a Kotlin project. Even though the project compiles correctly when I run `./gradlew build` from the command line, IntelliJ keeps showing unresolved references for the dependencies. I have the following dependencies declared in my `build.gradle.kts`: ```kotlin plugins { kotlin("jvm") version "1.7.10" } repositories { mavenCentral() } dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib") implementation("com.squareup.retrofit2:retrofit:2.9.0") implementation("com.squareup.retrofit2:converter-gson:2.9.0") } ``` I've tried invalidating caches and restarting IntelliJ, but that hasn't helped. I also checked that the Kotlin plugin is up to date. The Gradle settings are configured to use the `Gradle Wrapper` and the project SDK is set correctly to JDK 11. I can successfully run and debug the application using the terminal, but it is inconvenient not to have IDE support for code completion and behavior highlighting. When I hover over the unresolved references, I see messages like "Unresolved reference: retrofit" or "Unresolved reference: gson". Has anyone encountered this scenario before or have any idea what could be causing this? Any suggestions would be greatly appreciated! This is part of a larger desktop app I'm building. I'd be grateful for any help. My development environment is Debian. Is this even possible? The stack includes Kotlin and several other technologies. Any advice would be much appreciated.