CodexBloom - Programming Q&A Platform

Eclipse IDE 2023-09: scenarios while importing an existing Gradle project with Kotlin DSL build script

👀 Views: 22 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-12
Eclipse Gradle Kotlin

I've been struggling with this for a few days now and could really use some help. I'm trying to import an existing Gradle project into Eclipse IDE 2023-09, but I'm working with issues when the project uses a Kotlin DSL build script (`build.gradle.kts`). The import process fails with the behavior message: ``` behavior: Unable to resolve dependency for 'com.example:myproject:1.0': Could not find any matching version of dependency. ``` I've verified that the project builds correctly using Gradle from the command line, and the dependencies in the `build.gradle.kts` file are correctly defined. The relevant part of my `build.gradle.kts` looks like this: ```kotlin plugins { kotlin("jvm") version "1.7.10" } dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:") testImplementation("org.jetbrains.kotlin:kotlin-test:") } ``` I've checked that I have the Gradle Eclipse plugin installed and configured in Eclipse, but it seems to have trouble resolving the dependencies based on the Kotlin DSL. I've tried cleaning the project, refreshing the Gradle project, and even invalidating the Eclipse cache, but nothing seems to work. In addition, I ensured that my Gradle wrapper version is set to 7.4.2 in `gradle/wrapper/gradle-wrapper.properties`, and the settings are consistent with what I have in my local Gradle installation. Has anyone encountered a similar scenario, or does anyone know how to troubleshoot this? Any suggestions would be greatly appreciated! Is there a simpler solution I'm overlooking? I recently upgraded to Kotlin stable. Am I missing something obvious?