eclipse - 如何使用Gradle Kotlin DSL创建Eclipse项目?

标签 eclipse gradle build.gradle gradle-plugin gradle-kotlin-dsl

如何从Eclipse获得与使用gradle init --type java-application --test-framework testng --dsl kotlin从控制台获得的结果相同的结果?

我看到向导:

wizard1

但没有gradle-kotlin-dsl选项:

wizard2

我是Eclipse的new,但同时安装了Gradle和Kotlin插件。但是,我now看到它没什么用:

Kotlin DSL is fully supported in Intellij IDEA and Android Studio. Other IDEs, such as Eclipse or NetBeans, do not yet provide helpful tools for editing Gradle Kotlin DSL files, however, importing and working with Kotlin DSL-based builds work as usual.



鉴于Eclipse不像我希望的那样完全支持Kotlin DSL,我现在可能会尝试IDEA。

最佳答案

Gradle Kotlin DSL确实不支持而不是,而目前支持

参见Buildship issue #222 comment by Donát Csikós:

Not really. The existing Kotlin integration in Eclipse is simply too unstable to work with Gradle DSL. We'll coordinate with JetBrains how can we improve the situation. I'll close this issue for the time being and reopen when we have an update.

关于eclipse - 如何使用Gradle Kotlin DSL创建Eclipse项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58350698/

相关文章:

java - 在 gradle 中包含方法

git - Gradle-release-plugin 更新被拒绝,因为您当前分支的尖端落后

groovy - 将jar上传到War项目的Maven工件

android - eclipse调试中没有显示变量

java - 未使用字段 'nameOfField' 的值 - Java Swing

从 CMD 运行 JavaFx 应用程序时未编译

gradle - Gradle构建未调用JUnit

java - Hibernate 4.3 初始化实体

mongodb - hadoop mongodb连接器构建失败

android - 如何仅为发布版本设置gradle resolutionStrategy?