首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为我的Korge项目参考Korge的mavenLocal构建?

如何为我的Korge项目参考Korge的mavenLocal构建?
EN

Stack Overflow用户
提问于 2022-03-04 04:19:30
回答 1查看 34关注 0票数 0

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

我试着引用这样的版本:

代码语言:javascript
复制
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'.

..。

EN

回答 1

Stack Overflow用户

发布于 2022-03-04 04:19:30

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

在切换到使用java 16构建之后,我可以参考mavenLocal版本。

下面是我需要更改的设置:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71346568

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档