繁体   English   中英

如何为我的 Korge 项目引用 korge-next 的 mavenLocal 构建?

[英]How to reference mavenLocal build of korge-next for my Korge project?

我将如何设置 gradle 配置内容以便它引用 .m2 文件夹中的内容?

在此处输入图像描述

我尝试像这样引用版本:

在此处输入图像描述

A problem occurred configuring root project 'KorgeClient'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:2.0.0.999.
     Required by:
         project :
      > No matching variant of com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:2.0.0.999 was found. The consumer was configured to find a runtime of a library compatible with Java 16, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.3.3' but:
          - Variant 'apiElements' capability com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:2.0.0.999 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 16
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.3.3')
          - Variant 'runtimeElements' capability com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:2.0.0.999 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 16
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.3.3')

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'KorgeClient'.

...

问题是因为我正在使用 java 17 而不是 java 16 构建 korge-next。

切换到使用 java 16 构建后,我可以引用 mavenLocal 版本。

这是我需要更改的设置:

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM