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/

相关文章:

gradle - 如何让 Gradle 在动态版本上使用特定的存储库?

java - 安卓:java.lang.NoClassDefFoundError

gradle - gradle任务-全部抛出错误

java - maven编译错误

java - Eclipse中如何使用java.exe和javaw.exe?

android - Buck vs Gradle,Android 构建系统的优缺点

android - java.io.IOException : com. android.jack.api.v01.CompilationException: 编译失败

java - maven pom.xml 提示执行无法解析依赖关系但功能正常

java - 如何在我的 eclipse 中调试远程应用程序

android - 错误: Cause: compileSdkVersion is not specified after install plugin