【问题标题】:Kotlin incompatible when creating Micronaut command line applications创建 Micronaut 命令行应用程序时 Kotlin 不兼容
【发布时间】:2019-11-07 01:39:35
【问题描述】:

每当我尝试使用 Micronaut 和 Kotlin 创建命令行应用程序时:

mn create-cli-app cli2 --features kotlin

我收到以下警告:

| Warning The following features are incompatible with other feature selections and have been removed from the project | kotlin

生成的项目已经回退到Java,非常优雅。

这是一个“错误”还是当前的预期行为?

【问题讨论】:

    标签: kotlin command-line micronaut


    【解决方案1】:

    要选择语言(java、groovy 或 kotlin),最好使用--lang 标志而不是--features。 正在做:

    $ mn create-cli-app mycli --lang=kotlin
    | Generating Kotlin project...
    | Application created at /tmp/mycli
    

    按预期工作。

    【讨论】:

      猜你喜欢
      • 2019-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-25
      • 1970-01-01
      相关资源
      最近更新 更多