gpt4 book ai didi

where do i define shared dependencies in gradle 8 structure?(在Gradle 8结构中,我在哪里定义共享依赖项?)

转载 作者:bug小助手 更新时间:2023-10-25 17:24:27 27 4
gpt4 key购买 nike



Current build logic structure


The above is my current build logic structure, when I try to apply shared dependencies in java-common-conventions.gradle the build complains.

上面是我当前的构建逻辑结构,当我尝试在Java-Common-convenentions.gradle构建中应用共享依赖项时。


also I'm unable to apply spring boot plugins like so:

另外,我不能像这样应用Spring Boot插件:


    // Apply the java Plugin to add support for Java.
id 'java'
id 'org.springframework.boot' version '2.7.10'
}

error:

Invalid plugin request [id: 'org.springframework.boot', version: '2.7.10']. Plugin requests from precompiled scripts must not include a version number. Please remove the version from the offending request and make sure the module containing the requested plugin 'org.springframework.boot' is an implementation dependency
it does work if I define it in every subproject's build.gradle

错误:无效的插件请求[id:‘org.springFrawork.ot’,版本:‘2.7.10’]。来自预编译脚本的插件请求不得包含版本号。请从有问题的请求中删除版本,并确保包含所请求的插件‘org.springFrawork.ot’的模块是一个实现依赖项,如果我在每个子项目的build.gradle中定义它,它确实可以工作


how do I shared dependencies and how/where do I define the subproject & allproject closures?

我如何共享依赖关系,以及如何/在哪里定义子项目和所有项目闭包?


更多回答

What are the contents for the build-logic/build.gradle? And how are you applying the convention plugins to a project? Amend your question with those details.

build-logic/build.gradle的内容是什么?你是如何将约定插件应用到项目中的?用这些细节来修改你的问题。

优秀答案推荐
更多回答

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com